In order to see an icon in the live wallpaper menu, you need to set
the android:thumbnail attribute for the applications <Wallpaper> tag.
This will normally be found in the XML file corresponding to the class
that extends WallpaperService.

Looking at the CubeLiveWallpaper sample application provided with the
SDK, we see this tag to be located in cube1.xml and cube2.xml. A
modified version below displays the icon thumb.png located in
res/drawable and provides a description defined in strings.xml

<wallpaper
    xmlns:android="http://schemas.android.com/apk/res/android";
    android:thumbnail="@drawable/thumb"
    android:description="@string/description"
    
android:settingsActivity="com.example.android.livecubes.cube2.CubeWallpaper2Settings"
/>

2011/1/15 John Lussmyer <johnlussm...@gmail.com>:
> So, anyone have any ideas why my icon doesn't show up in the list of Live
> Wallpapers (just the generic icon shows), but DOES show up in the Wallpaper
> menu, Configure entry after installing the wallpaper?
>
> On Thu, Jan 6, 2011 at 1:18 PM, John Lussmyer <johnlussm...@gmail.com>
> wrote:
>>
>> Okay, I didn't have the icon specified there.
>> I've added it.
>> Uninstalled from the emulator, and re-installed.
>> The icon still doesn't show up in the Live Wallpapers menu, and no errors
>> are displayed in logcat.
>> (Sure wish my AT&T 2.1 phone supported Live Wallpapers!)
>>
>> On Thu, Jan 6, 2011 at 12:26 PM, Josh <josh.olek...@gmail.com> wrote:
>>>
>>> You generally have a file like /res/xml/MyWallpaper.xml with a
>>> <wallpaper> tag as the root.  This is where you define the settings
>>> activity and thumbnail icon, which is generally the same as your app
>>> icon, but can be different.  See
>>>
>>> http://developer.android.com/resources/samples/CubeLiveWallpaper/res/xml/cube2.html
>>>
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to