Back to project page ContactsManager.
The source code is released under:
Apache License
If you think the Android project ContactsManager 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 silverhillapps.com.contactsmanager; /*from w ww . j a v a 2 s . c o m*/ import android.app.Application; import android.content.Context; import dagger.ObjectGraph; import silverhillapps.com.contactsmanager.manager.ManagerModule; /** * Application class for wrapping global runtime variables * */ public class CMApplication extends Application { private static Context mContext; // Application context for assets loading public void onCreate() { super.onCreate(); CMApplication.mContext = getApplicationContext(); } /** * Method which returns the application context * * @return the application context */ public static Context getAppContext() { return CMApplication.mContext; } }