¡@

Home 

2014/10/16 ¤W¤È 08:19:52

android Programming Glossary: myjavaactivity

When/why does my Java singleton instance get destroyed?

http://stackoverflow.com/questions/7503997/when-why-does-my-java-singleton-instance-get-destroyed

android app that is setup to start a Java activity call it MyJavaActivity which in turn launches a NativeActivity. When the NativeActivity.. When the NativeActivity finishes it returns back to MyJavaActivity. I also have a Java singleton class call it MyJavaSingleton.. NativeActivity using JNI which can later be retrieved by MyJavaActivity. The problem is MyJavaSingleton instance seems to be in memory..

When/why does my Java singleton instance get destroyed?

http://stackoverflow.com/questions/7503997/when-why-does-my-java-singleton-instance-get-destroyed

does my Java singleton instance get destroyed I have an android app that is setup to start a Java activity call it MyJavaActivity which in turn launches a NativeActivity. When the NativeActivity finishes it returns back to MyJavaActivity. I also have.. call it MyJavaActivity which in turn launches a NativeActivity. When the NativeActivity finishes it returns back to MyJavaActivity. I also have a Java singleton class call it MyJavaSingleton which I would like to stay in memory throughout my application's.. I set some of the singleton class's member variables from my NativeActivity using JNI which can later be retrieved by MyJavaActivity. The problem is MyJavaSingleton instance seems to be in memory until NativeActive exits but somehow seems to be set to null..