rfuguq
Last Updated: February 25, 2016
·
1.467K
· sergigracia
Sergi2

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á!):
Picture

More info in Android API Guide

Say Thanks
Respond