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

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows


Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS


TStringList and TFDMemTable Contribute To The Powerhouse That Is Cross Platform Delphi Development In FireMonkey


Massive Update With Tons Of Fixes For Delphi 10.4 Firemonkey On Android, IOS, MacOS, Windows, And Linux

Sign up for our Newsletter and
stay informed

Leave a Reply