Re: [android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Dianne Hackborn
On Tue, Sep 21, 2010 at 1:13 AM, Jerome Deng wrote: > If there is less memory available, the resource used by the paused > apps will be recycled by Davilk VM. > Actually Dalvik isn't really involved here except for executing code as it normally does. This is implemented by the framework and ker

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Brion Emde
Well, as you'll read in the docs, it's during onSaveInstanceState() that you save the state that will be restored when your app is restarted due being killed by the OS. The saving you do in onPause() is the normal kind of saving you do; saving the user's inputs and the like. The kind of saving yo

Re: [android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Kostya Vasilyev
Parag, Yes, Android can shut down processes if there is not enough memory. I think you should review these sections from Android documentation: http://developer.android.com/guide/topics/fundamentals.html#procthread http://developer.android.com/guide/topics/fundamentals.html#lcycles -- Kosty

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Chris Stratton
How well they restore state depends on how the app author has handled the onPause which is called when the app first went into the background and became fair game for killing. Typically for example an email your were editing will now be a saved draft, a moves-based game will be exactly as before,

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Brion Emde
Yes, that is exactly what it means. From the user's perspective, nothing has happened: when they come back to app #1, it has been restarted, has restored its state and things look exactly like they did when the user was there before. If you want to notify the user somehow, you would do that in you

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread parag
Hi Jerome, Thanks for th information, so does that mean that, there is a possibility that some apps will be closed, without notifying the user? Thanks in advance On Sep 21, 1:13 pm, Jerome Deng wrote: > If there is less memory available, the resource used by the paused > apps will be recycled

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Jerome Deng
If there is less memory available, the resource used by the paused apps will be recycled by Davilk VM. When you open the first app again, it will be relaunched. But not all previously opened apps must restarted, as they may be still in paused state. On Sep 21, 2:10 pm, parag wrote: > hi folks, >