[android-developers] Kill running app
Hi, I want my app to kill a running app but i got the problem that since API 8 the method is deprecated and i need to use another function. So i want that if API level of the device is smaller than 8 it runs this ActivityManager aM = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE); aM.restartPackage(package); And from 8 this ActivityManager aM = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE); aM.killBackgroundProcesses(package); But how do i accomplish this because using something like an if will make the compiler complain. Mats -- 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
[android-developers] Kill an app / package in API 8 (Froyo)
Hi, I have an app killing feature in one of my apps but up to API 7 i always worked with restartPackage(String PackageName); but since API 8 its deprecated so I tried killBackgroundProcesses(String PackageName) but that didn't work either. I hope someone can help me. -- 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
[android-developers] Getting spammed by android project
Anyone know how to unsubscrive from a google code repository? Right now it seems I'm getting an email for every ticket update in the Android project. About 200 per day, sort of freaking me out. Any ideas? /Mats -- 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