I am a newbie to Android. I read the Android Documentation but I still need some more clarification. Can anyone tell me what exactly a PendingIntent
is?
Android – an Android PendingIntent
androidandroid-intentandroid-pendingintent
Related Topic
- Android – Is quitting an application frowned upon
- Android – How to pass data between Activities in Android application
- Android – unique Android device ID
- Android – ‘Context’ on Android
- Java – Proper use cases for Android UserManager.isUserAGoat()
- Android Studio: Add jar as library
- Sql – What data-type should I use to store monetary values
Best Answer
A
PendingIntent
is a token that you give to a foreign application (e.g.NotificationManager
,AlarmManager
, Home ScreenAppWidgetManager
, or other 3rd party applications), which allows the foreign application to use your application's permissions to execute a predefined piece of code.If you give the foreign application an Intent, it will execute your
Intent
with its own permissions. But if you give the foreign application aPendingIntent
, that application will execute yourIntent
using your application's permission.