Monday 5 January 2015

What is implicit intent in android ?


Implicit intent is used to invoke the system components.

In an implicit intent, the main power of the android design, we just declare an intent and leave it to the platform to find an activity that can respond to the intent. Here, we do not declare the target component and hence is typically used for activating components of other applications seamlessly.

 If you want to view a web page with the specified URL then you can use this procedure.
 Intent i = newIntent(android.content.Intent.ACTION_VIEW,Uri.parse(“http://www.amazon.com”));

 startActivity(i);

No comments:

Post a Comment