Java tutorial
//package com.java2s; import android.content.Context; public class Main { private static Context mApplicationContextHandler = null; public static void setActivityHandler(Context context) { mApplicationContextHandler = context.getApplicationContext(); } public static Context getApplicationContext() { return mApplicationContextHandler; } }