Monday, July 7, 2014

How to make a Toast in Android

The tutorial below is how to create a Toast in an Android application. It's very simple, but very useful. In order to display text for a short period of time and have it disappear, you can use Toast. Please see code below as an example.

Toast.makeText(this,"Hello world",Toast.length_short).show();

That's it!

Check out my latest car app if you get a chance

No comments:

Post a Comment