Alert messagebox toast Android example code

Toast in Android application is equivalent of Alert in JavaScript or MessageBox in WinApi.

// Toast android.widget.Toast.makeText(Context context, CharSequence text, int duration)
// public static Toast makeText (Context context, CharSequence text, int duration) 
 
Toast.makeText(getApplicationContext(), "Hello world!",
                  Toast.LENGTH_SHORT).show();
This entry was posted in Android Examples Code and tagged , , , . Bookmark the permalink.


Comments are closed.

4,311 views