Show a Toast in Android Java

This will show a Toast message

Toast.makeText(getApplicationContext(), "This is my Toast message!",
Toast.LENGTH_LONG).show();

You can try LENGTH_SHORT< for short duration of the toast

,

Post navigation

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.