Here's how I implement Toast:
    if ((name == "") || (pass == "")){
        Toast invalidLoginToast = new Toast.makeText(this, "aaa", 3).show();
    } else {
        Intent intent = new Intent (this, AnnouncementsActivity.class);
        String deviceId = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);
        intent.putExtra("NAME", name);
        intent.putExtra("ID", deviceId);
        startActivity(intent);
    }
But I get the error
Error:(34, 48) error: cannot find symbol class makeText
Neccessary imports are already made. Am I sending wrong parameters into the method?
 
     
     
     
     
     
    