I would like to know which application area (AndroidManifest.xml, etc) I need to indicate that my app is capable of providing wallpapers to the Live Wallpapers area.
I would like to know which application area (AndroidManifest.xml, etc) I need to indicate that my app is capable of providing wallpapers to the Live Wallpapers area.
Your question is quite wide, but Live Wallpaper is a service, so you'll have to declare this service in your AndroidManifest.xml, remembering that this service requires android.permission.BIND_WALLPAPER
permission and must be registered via attempt-filter for action android.service.wallpaper.WallpaperService
.
Here is the example provided by Vogella ;
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.vogella.android.wallpaper"
android:versionCode="1"
android:versionName="1.0" >
<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
<service
android:name="MyWallpaperService"
android:enabled="true"
android:label="Wallpaper Example "
android:permission="android.permission.BIND_WALLPAPER" >
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" >
</action>
</intent-filter>
<meta-data
android:name="android.service.wallpaper"
android:resource="@xml/mywallpaper" >
</meta-data>
</service>
<activity
android:name=".MyPreferencesActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.WallpaperSettings" >
</activity>
<activity
android:name=".SetWallpaperActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.WallpaperSettings" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="10" />
<uses-feature
android:name="android.software.live_wallpaper"
android:required="true" >
</uses-feature>
</manifest>
On this same site you can find all the information you need to create a Live Wallpaper but requires a basic knowledge of English.