This is what force stop does.  It's not a bug, it is very much a feature.

2009/10/1 José Prieto Garay <jose.prietoga...@gmail.com>

>
> Hello Emiliano,
>
> I'm having the same issue, that "Force Stop" is destroying everything
> related to my package and process: Activities, BroadcastReceivers and
> Services, then callback methods aren't called, onDestroy() isn't
> called for example.
>
> It's like your package and process can't be notified that it's been
> killed, it doesn't make sense.
>
> Cheers,
>
> Pepi
>
> On 1 oct, 18:18, Romain Guy <romain...@google.com> wrote:
> > So you want to restart your app when the user just explicitly said he
> > didn't want to run your app anymore?? Don't do that.
> >
> >
> >
> > On Thu, Oct 1, 2009 at 2:13 PM, Emiliano Schiano <emylya...@gmail.com>
> wrote:
> > > Hello Everybody,
> > > I´m having the following issue.
> > > The ApplicationManager is killing the process of my application when
> the
> > > user presses on "FORCE STOP" on the Aplication Manager.
> > > MENU-> SETTINGS -> APPLICATIONS -> MANAGE APPLICATIONS -> My APP .>
> FORCE
> > > STOP.
> > > According to the documentation a broadcast action is sent:
> > > Intent.ACTION_PACKAGE_RESTARTED
> > > Broadcast Action: The user has restarted a package, and all of its
> processes
> > > have been killed. All runtime state associated with it (processes,
> alarms,
> > > notifications, etc) should be removed. Note that the restarted package
> does
> > > not  receive this broadcast. The data contains the name of the package.
> > > How can I listen that action in my application; I have tried creating a
> > > BroadcastReceiver on my package, but the onReceive() is not called.
> > > I added the following to my receiver on the manifest, but nothing
> changed.
> > > <receiver android:name=".MyReceiver">
> > >   <intent-filter>
> > >      <action android:name="android.intent.action.PACKAGE_RESTARTED"/>
> > >   </intent-filter>
> > > </receiver>
> > > Emy
> >
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  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