¡@

Home 

2014/10/16 ¤W¤È 08:23:01

android Programming Glossary: rootfactory

Static references are cleared--does Android unload classes at runtime if unused?

http://stackoverflow.com/questions/5105097/static-references-are-cleared-does-android-unload-classes-at-runtime-if-unused

since all Activities and Services share the same reference to that root factory. Here's how it looks like public class RootFactory private static volatile RootFactory instance @SuppressWarnings unused private Context context I'd like to keep this for.. the same reference to that root factory. Here's how it looks like public class RootFactory private static volatile RootFactory instance @SuppressWarnings unused private Context context I'd like to keep this for now private volatile LanguageSupport.. private volatile PositionProvider positionManager private volatile SimpleDataStorage simpleDataStorage public static RootFactory initialize Context context instance new RootFactory context return instance private RootFactory Context context this.context..