I have created two Android app’s (soundboards). One version is normal, other one is censored. Now I want to squeeze them to only one app. Now, how to make an options in settings menu, to show, or not to show censored content?
I have created two Android app’s (soundboards). One version is normal, other one is
Share
You can add a PreferenceActivity with a CheckBoxPreference to your Application (don’t forget to use the Manifest to declare them).
There is a nice sample of that in the API Demos.
After doing that you can easily check a boolean value from the SharedPreferences – here’s how: Data Storage Guide.