Show Toast Messages
So simple! Add the import for Toast:
import android.widget.Toast;
And where you want show a message:
Toast.makeText(getBaseContext(), "Message saved as draft.", Toast.LENGTH_LONG).show();
And the result is (tadá!):
More info in Android API Guide
Written by Sergi Gracia
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#