WebToAppMaker

App Configuration

Dynamic App Icon

Package alternate Android launcher icons and switch among them at runtime through the JavaScript bridge.

Before you start

  • Up to five square JPG, JPEG, or PNG icons
  • A rebuilt APK containing every selectable icon

Configure and verify

  1. Enable the module

    Turn on Dynamic App Icon for the Android app.

  2. Upload icon slots

    Add up to five icons. A square 300 x 300 px or larger source without transparency is the safest choice.

  3. Save and build

    The worker generates launcher resources and activity aliases. Existing APKs cannot use newly uploaded icons.

  4. Switch from the website

    Call webtoapp.setDynamicAppIcon(1) through 5, or use 0/resetDynamicAppIcon() to restore the default.

  5. Handle launcher behavior

    Read the returned JSON and test several launchers. Some update immediately; others refresh after returning home.

Bridge example

const result = JSON.parse(webtoapp.setDynamicAppIcon(1));
if (!result.ok) console.error(result.error);

Device behavior

Test before release

  • Every icon is square and readable
  • A fresh APK includes every slot
  • Reset works
  • More than one launcher was tested