Hey guys, I was wondering on this for quite a bit but couldn't find any solution!
1. My app bind to a service (through AIDL interface) 2, The service runs in the backround and send to my activity a value every now and than (and also a notification is sent) When I click the HOME button, and than navigate back to my application (while still i get notifications) to my app and launch it, everything is fine, i'm back to my app as if I never left it (i get a window with my value displayed) When I click the BACK button the service dies along with the activity that is bound to it (the onDestroy() of the service is fired and the code there removes all the messages) now, I removed the code that disabled the message handler to my services, and the service is kept a live even if i killed the host activity. however, the service still runs in the bk and i get notifications but when I run my activity again, it wants to start a new service! which means, the service in the background is left to run without any binding to it, and it just there in the void running. my question: How mp3 alike apps in android catch the BACK button and still able to keep connection to a service even after the activity is closed? i can save the process ID of the service, but is it possible to attach your self to the service? or even re-bind to the existing one? how does it work?? thanx! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---