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 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE7 Firemonkey Android 5 Lollipop Bitmap Problem Error | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper 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

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging


Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


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

Sign up for our Newsletter and
stay informed


Leave a Reply