[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Dianne Hackborn
No, it will never be true. The VM doesn't manage processes at all. The system starts a process and runs a VM inside of it when it needs to run any components of an application. Unless you specify otherwise, all of your components run in the same VM, in the same process, sharing all of the same

[android-developers] Re: Activity lifecycle and static variables ....

2009-07-14 Thread Richard Schilling
That affirms a lot for me. Thanks! Richard Schilling Root Wireless On Jul 14, 4:35 pm, Dianne Hackborn hack...@android.com wrote: No, it will never be true. The VM doesn't manage processes at all.  The system starts a process and runs a VM inside of it when it needs to run any components

[android-developers] Re: Activity Lifecycle

2009-07-03 Thread hmmm
What if you make your activity singleTop and then use onNewIntent() in the same activity such as onCreate { configure(); } onNewIntent { configure() } -Original Message- From: Daniel daniel.himmel...@googlemail.com To: Android Developers android-developers@googlegroups.com Date: Fri,

[android-developers] Re: Activity Lifecycle in Regards to Process Lifecycle and GC

2009-01-13 Thread Dianne Hackborn
On Tue, Jan 13, 2009 at 12:27 PM, iliketolearn theand...@gmail.com wrote: When the system is running low on memory, can it selectively choose to destroy an activity in the process, instead of the entire process? Currently it relies on killing the entire process, but this could change in the

[android-developers] Re: Activity Lifecycle

2008-10-03 Thread Guillaume Perrot
hackbod, with the finishOnTaskLaunch flag set to true, pressing HOME will finish the activity, calling onDestroy. On Oct 3, 2:59 am, hackbod [EMAIL PROTECTED] wrote: Um...  you should fix your program. :) You can't really rely on onDestroy() for this.  For example, if the user presses home

[android-developers] Re: Activity Lifecycle

2008-10-02 Thread hackbod
Um... you should fix your program. :) You can't really rely on onDestroy() for this. For example, if the user presses home to get out of your app, the activity will not be destroyed. And if the user flips the lid while your activity is running, the current instance will be destroyed and a new

[android-developers] Re: Activity Lifecycle Question

2008-09-29 Thread Guillaume Perrot
A situation you will often run in to is when another entity (such as the SearchManager or NotificationManager) starts one of your activities. In this case, the Intent.FLAG_ACTIVITY_NEW_TASK flag must be used, because the activity is being started outside of a task (and the application/task may

[android-developers] Re: Activity Lifecycle Question

2008-09-28 Thread Megha Joshi
When setting the Notification intent, are you using the Flags CLEAR_TOP and SINGLE_TASK? ie. Intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK) More explanation about these launch modes is given in the docs below:

[android-developers] Re: Activity Lifecycle Question

2008-09-28 Thread Gil
Awesome! You saved the day ... again. --~--~-~--~~~---~--~~ 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,

<    1   2