[android-developers] Re: When will android automatically launch a process when force closed?
Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. On Jun 14, 1:33 am, TreKing treking...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:44 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Can you please let me know under what conditions will android automatically start the process after force close, and if there is a way to instruct the system to not do this for my app? I believe that if an activity is forced to close (crashes), then the system goes to the previous activity in the stack. This is a requirement for my app, to be not auto-restarted when the user kills the app. If the user kills the app (i.e., they go to the app management screen and Force Stop it) then it should not be auto-restarted. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: When will android automatically launch a process when force closed?
On Tue, Jun 14, 2011 at 7:00 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. What process are we talking about? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: When will android automatically launch a process when force closed?
Is this a Service as opposed to an activity? Or is there a BroadcastReceiver? A plain Activity needs an Intent to start so if you are positive you have an Activity then you should print out the Intent in the onCreate and see if you find something. On Tue, Jun 14, 2011 at 8:00 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. On Jun 14, 1:33 am, TreKing treking...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:44 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Can you please let me know under what conditions will android automatically start the process after force close, and if there is a way to instruct the system to not do this for my app? I believe that if an activity is forced to close (crashes), then the system goes to the previous activity in the stack. This is a requirement for my app, to be not auto-restarted when the user kills the app. If the user kills the app (i.e., they go to the app management screen and Force Stop it) then it should not be auto-restarted. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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
Re: [android-developers] Re: When will android automatically launch a process when force closed?
Look in the log, there is always a log when a new process is started with the reason why it is being started. On Tue, Jun 14, 2011 at 5:00 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. On Jun 14, 1:33 am, TreKing treking...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:44 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Can you please let me know under what conditions will android automatically start the process after force close, and if there is a way to instruct the system to not do this for my app? I believe that if an activity is forced to close (crashes), then the system goes to the previous activity in the stack. This is a requirement for my app, to be not auto-restarted when the user kills the app. If the user kills the app (i.e., they go to the app management screen and Force Stop it) then it should not be auto-restarted. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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