Created
August 23, 2015 09:00
-
-
Save muratcanbur/36aa2a8660bd0700150e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App extends Application { | |
private static final AtomicReference<App> INSTANCE = new AtomicReference<>(); | |
public static Context getContext() { | |
return INSTANCE.get(); | |
} | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
INSTANCE.set(this); | |
StethoUtil.init(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment