Hi, I am running a service that starts a new activity when specific applications are launched.
For example, when I launch sms application, my service detects it by checking a top activity package name and starts a new activity. But the problem is that after starting a new activity, when I finish that activity and press BACK button from sms application to go back to Home screen, it does not finish my sms application. Even though the screen is at home(launcher), when I check top activity name, sms app is running as the top activity, which means sms app is not finished after pressing BACK button. I use Intent.FLAG_ACTIVITY_NEW_TASK intent flag for starting a new activity and finish() to finish it. Does anyone have an idea why my BACK button does not finish sms application in this case? thanks, 777 -- 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