Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Live Wallpaper settings button not sending me to settings
    primarykey
    data
    text
    <p>So I've managed to get the settings button to appear while in the preview for my live wallpaper. The only issue I'm having is that it's not shooting me to my preference activity. (I've logged it and I never enter the activity).</p> <p>I have a feeling I must have made a mistake in the XML somewhere... But I cant seem to spot it.</p> <p>Here's my wallpaper.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;wallpaper xmlns:android="http://schemas.android.com/apk/res/android" android:thumbnail="@drawable/icon" android:description="@string/wallpaper_description" android:settingsActivity="com.company.app.package.LiveWallpaperPrefs"&gt; &lt;/wallpaper&gt; </code></pre> <p>Here's the relevant snippet from my manifest.</p> <pre><code>&lt;service android:name="com.company.app.package.LiveWallpaperService" android:enabled="true" android:icon="@drawable/icon" android:label="app" android:permission="android.permission.BIND_WALLPAPER" &gt; &lt;intent-filter android:priority="1" &gt; &lt;action android:name="android.service.wallpaper.WallpaperService" /&gt; &lt;/intent-filter&gt; &lt;meta-data android:name="android.service.wallpaper" android:resource="@xml/wallpaper" /&gt; &lt;/service&gt; &lt;activity android:name="com.company.app.package.LiveWallpaperPrefs"/&gt; </code></pre> <p>Anybody know why It's not sending me to my LiveWallpaperPrefs when I press settings? It's actually currently giving me an error "Unfortunately, Live Wallpaper Picker has stopped."</p> <p>Thanks!</p> <hr> <p>Actually figured it out... I wasn't giving the system permission to enter that settings portion of my app from outside of my app... Here's what fixed my code.</p> <p>In the manifest (replacing the old LiveWallpaperPrefs)</p> <pre><code>&lt;activity android:name="com.company.app.package.LiveWallpaperPrefs"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload