Back to project page ExpertAndroid.
The source code is released under:
MIT License
If you think the Android project ExpertAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.iuriio.demos.expertandroid.ch9openglexperiments; /* w w w.j a va2 s . c om*/ import android.app.Application; import android.content.Context; import android.content.res.Configuration; import android.util.Log; public class MyApplication extends Application { public final static String tag="MyApplication"; //Make sure to check for null for this variable public static volatile Context m_appContext = null; @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); Log.d(tag,"configuration changed"); } @Override public void onCreate() { super.onCreate(); Log.d(tag,"oncreate"); MyApplication.m_appContext = this.getApplicationContext(); } @Override public void onLowMemory() { super.onLowMemory(); Log.d(tag,"onLowMemory"); } @Override public void onTerminate() { super.onTerminate(); Log.d(tag,"onTerminate"); } }