You probably don't want to do this.  Unless you really want to suddenly kill
all of your processes, unregister all of your alarms, remove all of your
notifications, etc.

If you just want to do this as some kind of test, you can use the "Force
stop" button in Manage Applications.

On Tue, Dec 8, 2009 at 5: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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Reply via email to