Categories
Android Tips and Tricks

Android Create Toast In Fragment

To create a Toast in Fragment first take a look at the steps here

When that is in order, extended Fragment and create the fa object you can create your Toast like this:

Toast.makeText(fa, message, Toast.LENGTH_LONG).show();

Previous step.

Next step.