Pending Intent in Android

Pending intent is a token to the other application, which allows the other application to use your application’s permissions to execute a predefined piece of code.
Here other applications means  it may be an alarm manager, home screen widget manager etc......

To perform a broadcast via a pending intent, so get a pendingIntent via PendingIntent.getBroadcast().
To perform an activity via pending intent, you receive the activity via PendingIntent.getActivity.


Popular posts from this blog

What is Android ?