Sr. Android Developer Question:

Do you know what is a Toast? Write its syntax?

Tweet Share WhatsApp

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();

Download Sr. Android Developer PDF Read All 15 Sr. Android Developer Questions
Previous QuestionNext Question
Explain me what are the features of Android?Explain me what is the difference between File, Class, and Activity in android?