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

AndroidAppmethodCode SnippetDelphiFiremonkey

Android 5 Lollipop Bitmap Workaround For Delphi XE7 Firemonkey On Android

Delphi XE7 Firemonkey Android 5 Lollipop Bitmap Problem ErrorDeveloper Andrea Magni from Italy has a blog post up that highlights an issue with Android 5 and provides a workaround for Delphi XE5 Firemonkey. At the moment the roll out of Android 5 is pretty limited but that is sure to change in the future. The issue is that something changed in Android 5 (Lollipop) having to do with 3D surfaces and bitmaps. This has caused an issue with third party tools like Delphi and Adobe AIR. Platform vendors like Google, Apple, and Facebook regularly make breaking changes to their platforms so you have to upgrade your apps regularly if you want to stay current. The issue in Delphi XE7 is that it is unable to load bitmaps that are stored in the form using it’s LoadFromStream function. The workaround is to just store and load your bitmaps from the file system with LoadFromFile. Andrea Magni has provided some code which will automatically save out all the bitmaps on your form to files and then load them all back up again on Android. You do have to manually remove the bitmaps from your form once you save them out for now however. This same workaround also applies to Appmethod.

Head over and check out the full blog post about the Android 5 Bitmap workaround for Delphi XE7 Firemonkey before downloading the source code.


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 to Chester Wilson Cancel reply