You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MyApplication.java 391B

123456789101112131415161718
  1. package com.example.meinwald;
  2. import android.app.Application;
  3. import android.content.Context;
  4. public class MyApplication extends Application {
  5. private static Context context;
  6. public void onCreate() {
  7. super.onCreate();
  8. MyApplication.context = getApplicationContext();
  9. }
  10. public static Context getAppContext() {
  11. return MyApplication.context;
  12. }
  13. }