I am getting error while creating a Toast
Toast
Toast toast = Toast.makeText(this, text, duration);
I am getting cannot resolve ma
ma
Just like Blackbelt said the syntax of Toast is as follows:
Toast.makeText(Activity.this, "Message",Toast.).show();
where Activity.this is the current activity, Message is the string you want to show and Toast.length is the length you want it to show it for.
Activity.this
Message
Toast.length