Code example for SharedPreferences

Methods: getAll

0
 
    @Override 
    public void onLoad() { 
    	super.onLoad(); 
    	mModule = this.bindExtensionModule(KirinPreferences.class);
        mModule.mergeOrOverwrite(new JSONObject(mPreferences.getAll()));
 
         
         
    	mKirinHelper.jsMethod("mergeOrOverwrite", mPreferences.getAll());
        mKirinHelper.jsMethod("resetEnvironment"); 
    } 
     
    @Override 
    public void onUnload() { 
    	super.onUnload(); 
    } 
     
    /* (non-Javadoc) 
     * @see com.futureplatforms.android.jscore.services.ISettingsBackend#updateContents_withDeletes_(org.json.JSONObject, org.json.JSONArray) 
     */