Advertisement
Guest User

Untitled

a guest
Mar 5th, 2016
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public class MyApplication extends Application {
  2.  
  3. @Override
  4. public void onCreate() {
  5. super.onCreate();
  6. Utils.init(getApplicationContext());
  7. }
  8.  
  9. public class Utils{
  10.  
  11. private static Context sContext;
  12.  
  13. private Utils() {
  14. }
  15.  
  16. public static void init(Context context) {
  17. sContext = context;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement