Back to project page candymem.
The source code is released under:
GNU General Public License
If you think the Android project candymem 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 se.tube42.kidsmem.logic; /*w ww.ja v a 2 s . c om*/ import se.tube42.kidsmem.data.*; import se.tube42.kidsmem.service.*; public class SettingsHelper { public static void load() { Settings.sound = ServiceProvider.load("set_sound", true); Settings.fullscreen = ServiceProvider.load("set_full", false); Settings.size = ServiceProvider.load("set_size", 1); } public static void save() { ServiceProvider.save("set_sound", Settings.sound); ServiceProvider.save("set_full", Settings.fullscreen); ServiceProvider.save("set_size", Settings.size); ServiceProvider.flushStorage(); } }