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 <[email protected]> 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 [email protected] 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

