Search code examples
androidiconslivewallpaper

How to add App Icon in Live Wallpaper Android like normal Apps


Is it possible to add an app icon , like it shows in Live Aquarium Wallpaper (https://play.google.com/store/apps/details?id=fishnoodle.aquarium_free&feature=search_result#?t=W251bGwsMSwxLDEsImZpc2hub29kbGUuYXF1YXJpdW1fZnJlZSJd) When I install this wallpaper, it shows and icon which opens up the settings page when clicked on it. Has anyone done this before?


Solution

  • You would need to declare an Activity in your AndroidManifest.xml with the default intent-filter:

        <activity
            android:name="com.your.company.ui.SettingsActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
    
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>