String getAppIconByPackageName(String)
Attempts to get the icon image of an app. Returns a base-64 string of the image data, or null if something went wrong. The base-64 image can be assigned to an image tag like so:
el.src = "data:image/png;base64," + base64Data;
Security
Trust Level Required: Low trust
Parameters
Name | Description |
packageName |
String The package name of the app (ex. "com.adsi.kioware.client.mobile.app") |
Return
A base-64 string of the image data, or null if something went wrong.
Requirements
KioWare for Android version 4.0 or greater.