Sr. Android Developer Question:
Do you know what is a Toast? Write its syntax?
Answer:
Toast notification is a message that pops up on the window.
It only covers the expanse of space required for the message and the user’s recent activity remains visible and interactive.
The notification automatically fades in and out and does not accept interaction events.
Syntax:
Toast.makeText(ProjectActivity.this, "Your message will come here", Toast.LENGTH_LONG).show();
It only covers the expanse of space required for the message and the user’s recent activity remains visible and interactive.
The notification automatically fades in and out and does not accept interaction events.
Syntax:
Toast.makeText(ProjectActivity.this, "Your message will come here", Toast.LENGTH_LONG).show();
Previous Question | Next Question |
Explain me what are the features of Android? | Explain me what is the difference between File, Class, and Activity in android? |