Describe the explicit and implicit intent.

: 765
Paper : Android Development FAQ (Frequently Asked Questions and answers) | Platform : Apps Development | Category : Development FAQs

Explicit Intent: This type of intent will take you from one activity to another activity. When you want to launch another activity through intent, then explicit intent is used. 

Example: Intent intent = new Intent(this, anotheractivity.class);

               startActivity(intent);

Implicit Intent: This type of intent is used when you want to send an email, send an SMS, open a web page and more. 

Example: Intent intent = new Intent();

               intent.setAction(Intent.ACTION_VIEW);

               intent.setData(Uri.parse("http://www.google.com//");

               startActivity(intent);

Suggested Papers: