android - Working in background -
actually, found lots of answers questions time totally stuck.
my question easy. building radio streaming application .pls streams , when user press home button, want application continue working. think lots of know ebuddy , skype or basic media players. putting notification bar , can reach them place. tried create notification app, when click icon on notification bar, can't reach app. directly opens new version of app , can't control streaming, initial working app no longer existing.
you may want read descriptions launchmode: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode
you want launch activity singleinstance
edit: maybe singletask better.
this workflow want achieve: workflow http://i55.tinypic.com/xm0llx.png
all background work has done service. implementing 1 quite simple, creating activity.
there many examples on how it:
Comments
Post a Comment