0

When I click Settings... in my live wallpaper I get

Unfortunately, Live Wallpaper Picker has stopped

This is my wallpaper XML

<?xml version="1.0" encoding="UTF-8"?>
<wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
android:thumbnail="@drawable/fish1" 
android:description="@string/wallpaper_description" 
android:settingsActivity="com.example.fishwall.MainSettings"/> 

And this this the Settings java file

public class MainSettings extends PreferenceActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.prefs);
    }
}
Arsaceus
  • 293
  • 2
  • 19

1 Answers1

0

you need to export your Settings activity. Without exporting it it is unavailable for the Wallpaper Selector. Something like this in the manifest:

    <activity
        android:name=".MainSettings"
        android:exported="true"/>
jbarat
  • 2,382
  • 21
  • 23