A live wallpaper can be configured by using an activity that stores preferences. When the preferences are changed, the live wallpaper is updated to reflect the new preferences.
The following are preferences that we can make available to the user to change:
So let us begin.
PreferenceActivity. To create a
PreferenceActivity, we must first create an XML description of it. Create a new file in
res/xml/wallpaperpreferences.xml. In it, put the following block of code:
<?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" ...