4

I'm currently working on the rollout process of my upcoming live wallpapers.

I currently have one live wallpaper in the Google Play store that comes with no launcher whatsoever. The settings can only be adjusted in the native live wallpaper settings.

For the future I am planning to create an additional "app" (that needs to be shown in the Android menu and is also separately listed in the Google Play Store) that can access the settings of my live wallpaper (in case they are installed). So the user can access the settings of all my live wallpapers in one place. Lets call this app "Wallpapers Hub"

Here's the problem I am having:

If say a user downloads LiveWallpaper1, the live wallpaper would automatically create a icon in the menu. (Wallpapers Hub)

Now lets say the same user downloads LiveWallpaper2, which would also contain the launcher. He would now see two icons in his menu, opening the same app which is of course 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 achieve that all my live wallpapers use the same launcher icon?

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Al0x
  • 917
  • 2
  • 13
  • 30
  • If i understood your question correctly .... you want the two apps to be opened from a single menu icon ?? – MezzDroid Nov 26 '17 at 01:56
  • The two apps are live wallpapers, so they cannot be opened on their own. But I want to open an Activity from which I can get to the settings of the two wallpapers. – Al0x Nov 26 '17 at 12:36

1 Answers1

2

I'd suggest the following design: You've got the following apps:

  • HUB = wallpaper hub
  • WP1 = live wallpaper1
  • WP2 = live wallpaper2
  • ...

WP1, WP2 etc shouldn't have any launcher icon (as you don't want them launched). But give them a android:settingsActivity=" in their manifest.

Have this settings activity

  • look to see if the HUB is installed (by sending a broadcast using inter app communication)
  • if it is installed, start the settings app (using an intent)
  • if it isn't installed, display a page saying "To alter the settings for this wallpaper you need the HUB app" and give a deep link to the HUB app in the Google Play store.
  • the HUB app has a launcher entry

Then if the user only has WP1 installed they get prompted to install the HUB, and there is only one launcher icon (for the HUB)

Nick Fortescue
  • 13,530
  • 1
  • 31
  • 37
  • Hey Nick, thanks for the answer. This is actaully something that I haven't thought of and I will consider it, if there is no other possibility. The letdown is, that I am forcing the user to download the Hub as a separate app. – Al0x Nov 27 '17 at 14:45
  • 1
    The only way you can have 2 Play store listings is two downloads. There is no way around that. – Nick Fortescue Nov 28 '17 at 16:38