Created
March 22, 2016 11:56
-
-
Save AnanthaRajuC/3c202ae69e6e5c9e4c00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context context = getApplicationContext(); | |
CharSequence text = "Hello toast!"; | |
int duration = Toast.LENGTH_SHORT; | |
Toast toast = Toast.makeText(context, text, duration); | |
toast.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment