Demo entry 6626736

dd

   

Submitted by dd on Jun 26, 2017 at 13:03
Language: Java. Code size: 313 Bytes.

public static synchronized void init (Application context) {
		if(mApplication==null)
			mApplication=context;

		SharedPreferences sharedPref = GlobalApp.applicationContext.getSharedPreferences(Values.SHAREDPREF_APPKEY, Context.MODE_PRIVATE);
		isAllowed = sharedPref.getBoolean(KEY_ADJUST_ALLOWED, true);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).