Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiFiremonkeyWindows

Get Your App Icon With Delphi XE5 Firemonkey On Android And Windows

Delphi XE5 Firemonkey Android APK IconChris Rolliston put up a blog post about a month ago that has some sample code for accessing the icon from your Android APK file and your Windows binary file. The original blog post (here) only supported Android but then he made a second blog post which supports getting the icon file from your binary on Windows as well as the APK on Android. It uses the PackageManager API on Android which is actually a pretty powerful API that lets you access all of the information about all of the packages installed on the device (if you have the right permissions). You could for example read the icons of other packages on the device (using the getApplicationIcon() function) and use them within Delphi XE5 Firemonkey. The function for accessing a list of all the apps installed on the device is called getInstalledApplications(). The core of the get app icon code is:

Head over and view the full source of the function on his blog to access the app icon on Android.


Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply