Activity lifecycle and static variables ....

by Dianne Hackborn » Wed, 15 Jul 2009 04:42:18 GMT


Sponsored Links
 Yeah, the process lifetime, which is outlined here:

 http://developer.android.com/guide/topics/fundamentals.html #proclife

On Tue, Jul 14, 2009 at 1:38 PM, Richard Schilling <







-- 
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.

--~--~---------~--~----~------------~-------~--~----~



Activity lifecycle and static variables ....

by Dianne Hackborn » Wed, 15 Jul 2009 07:36:09 GMT


 o, 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 statics.

There is really nothing special about this besides a normal operating
system. There are processes, these are managed by the kernel, and they run
some code. There is Dalvik, which is some code that can run in a process.
It can't hop your code into another process.

On Tue, Jul 14, 2009 at 2:59 PM, Richard Schilling <
richard.rootwirel...@gmail.com> wrote:



--
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.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Android framework Java sources

Where can I get all latest Android Java framework classes sources?

-- 

2. Slider devices cause Activities to reset鈥

While testing on Android 1.6 using a G1 I have noticed that when I
slide out the keyboard it kills the activity and recreates it even
though I have set my activity to only display in portrait mode.

Same happens when I push the keyboard back in.

I get onSaveInstance, onDestroy called, then onCreate, onResume,
OnrestoreInstance...

I understand why this is done when the display is being switched to
landscape view but why does this happen when I specifically dont want
my activity to switch view, its essentially killing and restarting the
activity for no reason.

Is it the same on 2.x devices?

Is there something I'm missing to stop it happening?

Can anyone explain if there is any point to it?

-- 

3. latest ffmpeg for android

4. Porting issues cannot be solved

5. Loading Dialog/Html TextBox/Virtual Keyboard

6. How to change an activity in a tab

7. Is Usbnet driver (host) available for android2.2?