Hi, I tried to understand from the api the porpese of PendingIntent, coz sometimes some method i use requires this, i still didnt get the idea right, anyone could exaplin? why cant i juse use context?
thanks,
moshik
Hi, I tried to understand from the api the porpese of PendingIntent, coz sometimes some method i use requires this, i still didnt get the idea right, anyone could exaplin? why cant i juse use context?
thanks,
moshik
A PendingIntent is a combination of a gross action (start an activity? start a service? send a broadcast?), the action details (in the form of an Intent), and a Context. The PendingIntent is handed to the operating system, which will perform the gross action on the Intent at some future point (hence, "pending"). The Context is for security -- Android will execute the PendingIntent with only the permissions of the Context, so a PendingIntent cannot access things that the Context requesting it cannot.