Created
April 8, 2017 09:29
-
-
Save mbahgojol/99772d33b1b6b1a25d1aee807452e813 to your computer and use it in GitHub Desktop.
class application
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 Context context; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
context = getApplicationContext(); | |
} | |
public static synchronized Context getContext() { | |
return context; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment