Android Icon
Moderator: Moderators
Android Icon
I have now tried every way I can think of to make my exported Android-apk display my included icon, but it doesn't seem to work. It is 48x48 pixels. Are there any other requirements?
You can provide several PNG icons for your android application, see this manual for details. When building a final application version, I usually use all icon variants, i.e., drawable-hdpi, drawable-ldpi, drawable-mdpi, and drawable-xhdpi. By default, ZGE uses just drawable-ldpi with 36x36 icon.
AFAIK the ZApplication.Icon property is used just for Windows to add .ico file (maybe also bmp) for the generated exe. To change the icon on Android, look in the generated folder structure (use the Project/Android: Build APK menu item), namely the res sub-folder which contains application resources, including icons. You can create several sub-folders in the res folder, containing the application icon in different resolutions:
- drawable-ldpi for 36x36
- drawable-mdpi for 48x48
- drawable-hdpi for 72x72
- drawable-xhdpi for 96x96
It is recommended to use 32-bit .png format with transparency.
- drawable-ldpi for 36x36
- drawable-mdpi for 48x48
- drawable-hdpi for 72x72
- drawable-xhdpi for 96x96
It is recommended to use 32-bit .png format with transparency.