Re: [android-developers] restartPackage(some package name) api not working on device

2012-03-08 Thread TreKing
On Thu, Mar 8, 2012 at 12:44 AM, ashiq sayyad ashiqsay...@gmail.com wrote: I am trying to use following api to restart package.It is working on emulator but it is not working on device.. 1 - Read the description for that method in the documentation. 2 - Specify the platform versions you're

[android-developers] restartPackage(some package name) api not working on device

2012-03-07 Thread ashiq sayyad
Hi, Hope all doing well. I am trying to use following api to restart package.It is working on emulator but it is not working on device.. android.app.ActivityManager am = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); am.restartPackage(some packagename); Thanks