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. To unregister a broadcast receiver register registered in manifest file

      I have been able to register and unregister a broadcast receiver
from the java code and know that a broadcast receiver is unregistered
(even if it is not done explicitly) on its own as the process that
registered it is killed.
Now I have a broadcast receiver which has been registered through
manifest file and not through the java code, and need to unregister
the broadcast receiver from the java code. Since this, i think would
need a reference to System context that instantiates the broadcast
Is it possible.



2. Hp Andorid with video call

Hallo I'd android.

Mau tanya nih kalo hp android ada yg bisa video call gak yah.soalnya sy mau 
ganti iphone dan hp nokia ke android. Sekarang sy pake iphone dan terpaksa 
nokia untuk video call nya.

Terimakasih infonya


Henry Julianto

"Indonesian Android Community [id-android]" 

3. Why is there groovy-all-1.7.0.jar in the Android SDK?

4. Problems in Streaming in the MediaPlayer class .

5. Android Boot time reduction

6. OOT: Thanks to Suhu SA

7. In Gps app, Reduce the Distance & Time to 5m/10min , 10m/25sec.