does Android jvm unloads classes?

by Andrei » Wed, 30 Sep 2009 10:39:52 GMT

Sponsored Links
 A static field which was initialized becomes null at some point.
Can it be because that class was unloaded and loaded again?

does Android jvm unloads classes?

by Dianne Hackborn » Wed, 30 Sep 2009 11:37:19 GMT

 More likely it's because your process was killed.

Dianne Hackborn
Android framework engineer

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

does Android jvm unloads classes?

by fadden » Thu, 01 Oct 2009 04:55:20 GMT


FWIW, a class cannot be unloaded unless all classes in the same class
loader can be unloaded.  It all stays or it all goes.

This is sufficiently unlikely in an Android application that class
unloading has not been implemented, and is very, very low on the
planned feature list.


Other Threads

1. Playing shoutcast mp3 stream in background crashes in 1.5

I've successfully played shoutcast mp3 streams while the application
is hidden (no activity showing), simply by keeping a static pointer to
the playing thread (
framework.html#3). After updating to 1.5 it crashes almost instantly
after destroying the activity, and brings AudioTrack to unusable
state. There's been a change in AudioTrack.cpp since 1.1, claiming to
fix the "// FIXME: Wake up audioflinger" line in obtainBuffer(..).
That made me put the play thread into a Service to try if it works,
but it holds a little longer and crashes the same way. In 1.1 it
worked nicely, for hours, under heavy loaded cpu, memory and network.
Can anybody help figuring that out?


2. Analyzing audio in real time?

Basically I want to add functionality to my program that will respond
to "clapping".  I believe "AudioRecord" is what I need to do but I am
not sure what to look for in the array of bytes. Can anyone help me on
this issue?


3. How can I know who started(binded) service?

4. Android emulator not closing properly

5. Receive SMS

6. Color Spinner list items

7. How to Implement the Compass function to my application?