Showing a quick message on Android

public void showMessage(String tag, String message) { String s = tag + ":" + message; Toast toast = Toast.makeText(this, s, Toast.LENGTH_SHORT); toast.show(); Log.d(tag,message); }
This snippets shows how to create a Toast with a desired message on Android.

#android #toast #quickMessage

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.