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

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

Regular Expression Route Constraints And Route Names in Laravel 5.4