Generate Android Preferences/Settings Menu

Generating a setttings/preferences menu for your new android app can be tedious. Just use this and get on with the interesting parts.

This generates the java and xml you'll need for a simple preferences page for your Android App. Just enter the list of preferences in json format (press [Example] for an example) and then copy/paste the results into your android project. The snippet files must be merged into your existing files where marked with '+', others are complete files.

After you get it compiling, you can tweak the generated skeleton in your local copy e.g. by adding title/summary/defaultValue's to the preferences.xml file.

your app's preferences (json)

(to avoid losing these, edit in your favorite text editor and paste in here)

(first time? press example)




AndroidManifest.xml snippet

java/.../ snippet