create a toast android code example
Example 1: Toast messag eandroid
Toast.makeText(context, text, duration).show();
Example 2: how to make toast in android
Toast toast = Toast.makeText(this, "message", Toast.LENGTH_LONG;);
toast.show();
Toast.makeText(context, text, duration).show();
Toast toast = Toast.makeText(this, "message", Toast.LENGTH_LONG;);
toast.show();