Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyApplication extends Application {
- @Override
- public void onCreate() {
- super.onCreate();
- Utils.init(getApplicationContext());
- }
- public class Utils{
- private static Context sContext;
- private Utils() {
- }
- public static void init(Context context) {
- sContext = context;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement