Is that the package name you have defined in your Manifest for the package attribute? Also, you need to provide the parameter as a String.
On Dec 8, 8:46 am, Asif k <asifk1...@gmail.com> wrote: > Hi All, > > I want to kill my application whose base activity is > demo.test.MyActivity. > > I am trying to kill it from other application by following code, but > getting the error like " package name is not valid" > > am.restartPackage(demo.test); // here am is ActivityManager define > earlier ) > > Thanks, > Asif -- 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