Single Launcher Icon for Multiple Live Wallpapers

I am currently working on a deployment process for my upcoming live wallpapers.

I currently have one live wallpaper on the Google Play store that comes without a launcher. Settings can only be adjusted in the settings of your own live wallpaper.

In the future I plan to create an additional “application” (which should be shown in the Android menu, as well as separately indicated in the Google Play Store), which can access the settings of my live wallpapers (if they are installed). Thus, the user can access the settings of all my live wallpapers in one place. Lets call this app “Hub for desktop”

Here is the problem I am facing:

If the user downloads LiveWallpaper1, the live wallpaper will automatically create an icon in the menu. (Hub)

Now let's say that the same user downloads LiveWallpaper2, which will also contain a launcher. Now he will see two icons in his menu, opening the same application, which, of course, is not what I want to achieve.

<activity
    android:name="?????">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

How could I get all my live wallpapers to use the same launch icon?

+4
source share
1 answer

I would suggest the following design: You have the following applications:

  • HUB = Wallpaper Center
  • WP1 = live wallpaper1
  • WP2 = live wallpaper2
  • ...

WP1, WP2, etc. should not have any launch icon (since you do not want them to start). But give them android:settingsActivity="in your manifest.

  • , HUB ( ).
  • , ( )
  • , " , HUB", HUB Google Play.
  • HUB

, WP1, HUB, ( HUB)

+2

Source: https://habr.com/ru/post/1689685/


All Articles