Wednesday, 15 June 2011

android - Know if a Service is linked to an Activity -



android - Know if a Service is linked to an Activity -

i have 3 ways have android service running :

by opening activity (use alarmmanager , pendingintent raise service periodically) by system, through boot_completed event beingness received broadcastreceiver declared in manifest by system, if user kills application , activity opened service, through start_sticky flag (the service restarted no activity)

i want know, from service, if activity source of service beingness spawned.

ps: service not bound, since spawned alarmmanager.

thanks !

android

No comments:

Post a Comment