Changing the Hybrid App Package Icon

Modify the Hybrid App package application icon.

You cannot add new icons to the folder, but you can replace the existing icon images, using the same file name. The Hybrid App icons are named ampicon<index>.png, where <index> is a number between 30 and 116. The icon ampicon48.png is the default Hybrid App icon. This is also the icon that is shown on the menu item that shows all the Hybrid Apps.

Each Hybrid App icon has two associated image files that contain images for processed and unprocessed messages; ampicon<index>.png (unprocessed messages) and ampicon<index>p.png (processed messages). Processed means the message has been submitted to the server.

When you build the Hybrid Web Container with custom icons, the original icons still appear in SAP Control Center and in SAP Mobile WorkSpace. You must remember the original icon, so you can select it in SAP Mobile WorkSpace and in SAP Control Center.

  1. Identify the image currently used by the Hybrid App package that you want to replace:
    1. Log in to SAP Control Center.
    2. In Workflows, select the Hybrid App package for which to replace the image.
    3. Click the General tab.
      The icon is shown in Display icon.
  2. Go to the …\HybridWebContainer\res\drawable\ folder and find and replace the ampicon<index>.png and ampicon<index>p.png image files with the new images.
    Note: The new image files must use the same name as those you replaced, including the file extension, and they must have the same resolution as the original images.

    If you do not want to overwrite the icon entirely, make a copy of it using another name and move it out of the folder. Extra files in the drawable folder may interfere with resource indexing.

  3. Rebuild the Hybrid Web Container project.
Related tasks
Changing the Hybrid Web Container Application Icon
Changing the BlackBerry Hybrid Web Container Icon
Changing the Android Hybrid Web Container Icon