Back to project page FireflyAndroidLWP.
The source code is released under:
GNU General Public License
If you think the Android project FireflyAndroidLWP 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 net.precariouspanther.gdxtest; //from w w w .j a v a2 s . c o m import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Preferences; public class Config { public static final Preferences preferences = Gdx.app.getPreferences("preferences"); public static boolean parameter = true; public static void load() { parameter = preferences.getBoolean("parameter", true); } public static void save() { preferences.putBoolean("pamareter", parameter); preferences.flush(); } }