Static references are cleared–does Android unload classes at runtime if unused?
Both you (@Matthias) and Mark Murphy (@CommonsWare) are correct in what you say, but the gist seems lost. (The use of volatile is correct and classes are not unloaded.) The crux of the question is where initialize is called from. Here is what I think is happening: You are calling initialize from an Activity * … Read more