Skip to content

Instantly share code, notes, and snippets.

@Vitnere
Last active November 9, 2016 12:08
Show Gist options
  • Save Vitnere/bd5e589dd96f34a38c2d599938164fde to your computer and use it in GitHub Desktop.
Save Vitnere/bd5e589dd96f34a38c2d599938164fde to your computer and use it in GitHub Desktop.
Toast
Context context = getApplicationContext();
CharSequence text = "Minimum is 1 coffee!";
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