Skip to content

samigehi/Prefs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Prefs

SharedPreferences easy to use

i used it in mostly of my apps

to initialize

Prefs prefs = new Presfs(this);

for saving value

prefs.set(key, default);

for retrieving

Sting name = prefs.get(key);

int num = prefs.get(key);

boolean value = prefs.get(key);

float var = prefs.get(key);

Double double = prefs.get(key);

no need to intialize SharedPreferences No Editor

No any apply(); or commit();

Releases

No releases published

Packages

No packages published

Languages