Toasts sind Popup Fenster die eine einfache Meldung anzeigen
Erzeugen und Anzeigen
Ausführlich:
Context context = getApplicationContext();
String text = "Hello World!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();Kurz:
Toast.makeText(getApplicationContext(), "Hello World!", Toast.LENGTH_SHORT).show();