Android - On Screen Notification
In the C# Wolrd, we always use "MessageBox.Show (String)" to generate on screen notification (Pop-Up Message Box). In the Android, it has a similar thing calls toast. That is a small square box on the screen. Well, this is not just a single line of code, like Toast.Show(string). But that is just a few lines of codes more.
Code
Context context = getApplicationContext(); | |
CharSequence msgText= "Test"; | |
Toast toast = Toast.makeText(context,msgText, Toast.LENGTH_LONG); | |
toast.show(); |
Tags: android
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
Feedback awaiting moderation
This post has 1702 feedbacks awaiting moderation...
Form is loading...