123456789101112131415161718 |
- package com.example.meinwald;
-
- import android.app.Application;
- import android.content.Context;
-
- public class MyApplication extends Application {
-
- private static Context context;
-
- public void onCreate() {
- super.onCreate();
- MyApplication.context = getApplicationContext();
- }
-
- public static Context getAppContext() {
- return MyApplication.context;
- }
- }
|