Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

deckyfx/preferencesmanager

Repository files navigation

preferencesmanager

Manage Preferences storage acros multiple xml files

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
	...
		maven { url 'https://jitpack.io' }
	}
}

Add the dependency

dependencies {
    compile 'com.github.deckyfx:preferencesmanager:0.5'
}

Sample Code

Init the class and configure it

...

PreferencesManager Manager = new PreferencesManager(App.MAIN_CONTEXT);
Manager.getDefault().loadDefaultValue(R.xml.default_preferences);
Manager.getDefault().clear();
Manager.getDefault().set(/* Key */, /* Value */);
Manager.getDefault().get(/* Key */);
...

Then init DBSession

...
HashMap<String, Object> params = new HashMap<String, Object>();
HashMap<String, Object> headers = new HashMap<String, Object>();
this.G.HTTP_CLIENT.send(/* context */, /* path or full url */, /* Method */, params, headers, /* request ID */, /* callback */);
...

More sample is [here]

Feature: