Showing an Android Alert Dialog

Following code will show Android Alert Dialog.


public void showOkAlertDialog(CharSequence message)
{
     new AlertDialog.Builder(this)
        .setMessage(message)
        .setPositiveButton("OK", null)
        .show();
}

Message Must be something you need to show to user.

Comments

Popular posts from this blog

Offers on Friday, April 24, 2020

Fatal: LoadModule: error loading module 'mod_sql_mysql.c'