Back to project page kluster-android.
The source code is released under:
Apache License
If you think the Android project kluster-android 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.cs446.kluster; /* w ww . ja v a2 s. c o m*/ import android.app.Application; import android.content.Context; import com.cs446.kluster.cache.KlusterCache; public class KlusterApplication extends Application { private static KlusterApplication singleton; private KlusterCache mKlusterCache; private ConfigManager mConfigManager; private Context mContext; public static KlusterApplication getInstance(){ return singleton; } @Override public void onCreate() { super.onCreate(); init(); } private void init() { singleton = this; this.mConfigManager = new ConfigManager(this); this.mKlusterCache = KlusterCache.getInstance(this); this.mContext = getApplicationContext(); } public ConfigManager getConfigManager() { return this.mConfigManager; } public KlusterCache getCache() { return this.mKlusterCache; } public Context getContext() { return this.mContext; } }