android 10 toast throwing error 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();