Code example for Application

Methods: getApplicationContext

0
 
	} 
	 
	private static Context context;
	public static void setContext(Application app){
		context = app.getApplicationContext();
	} 
	 
	public static Context getContext(){
		if(context == null){
			AQUtility.warn("warn", "getContext with null"); 
			AQUtility.debug(new IllegalStateException());
		} 
		return context;
	} 
}