Yes, if you force stop the input method, it is restarted, because it is
actually being used and needed by the system to let the user perform input!
It makes no sense to try stop it from running.

Seriously, what are you trying to accomplish?

On Fri, Apr 24, 2009 at 12:42 AM, Eckel <zhangjin...@gmail.com> wrote:

>
> No I do not write a apk and write the code on framework notification
> view.
>
> I just have a try the "force stop" functionality and it's a new
> interface for activitymanger.restartPacakge, right?   If I try to
> force stop a background service like inputmethod, acitivtymanger will
> also restart the crash service and related process :(    It's by
> design?  So I still not force to remove a service.
>
> On Apr 24, 12:46 am, Dianne Hackborn <hack...@android.com> wrote:
> > On Wed, Apr 22, 2009 at 10:51 PM, Eckel <zhangjin...@gmail.com> wrote:
> > > You can get the running prcess info with process id from
> > > activitymanager, then kill it by Process.KillProcess(mPid).
> >
> > So wait...  you are saying you just wrote a regular application in an
> .apk,
> > and you can do this?  You really shouldn't be able to do this.  I am
> almost
> > positive you can't.  So I really want to confirm what you are actually
> > doing.
> >
> > > Could you have a simple introduction for how to use "Force Stop"?
> >
> > Er...  press the button?
> >
> > > As Mike and you said, android will automatically manager the activity
> > > and service lifecyle and don't need task management by users. I often
> > > meet a case,  playback a music on background service and view a a lot
> > > picture on foreground,  which maybe will cause low memory, then
> > > android will kill the background music. You will not hear the music
> > > again, but if you check the music process, you will find the music
> > > service restart and service is still alive and still occupy system
> > > resource. So for this case, I think service should not be restart.
> > > What's your opinion?
> >
> > It's basically working as intended.  If you really care about this, in
> > cupcake you can go in to manage applications, see the list of
> applications
> > with running processes, and force stop that one.
> >
> > --
> > 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.
> >
>


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