why we use toast code code example
Example 1: toast code in android studio
Toast toast = Toast.makeText(this, "message", Toast.LENGTH_LONG;);
toast.show();
Example 2: Toast messag eandroid
Toast.makeText(context, text, duration).show();
Toast toast = Toast.makeText(this, "message", Toast.LENGTH_LONG;);
toast.show();
Toast.makeText(context, text, duration).show();