toast main activity code example Example: Toast messag eandroid Toast.makeText(context, text, duration).show();