android - Can a service get a reference to the activity during onBind? -


i have service manages mediaplayer instance playing podcasts. once activity binds service can things play, pause, stop, etc. used service because want podcast continue playing after activity destroyed.

i'd service able send messages activity in case of error or normal status updates. possible service reference activity that's trying bind it? doesn't intent makes available.

the sdk samples api demos app has example of service messages activity


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -