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
AndroidC++BuilderDelphiDemoFiremonkeyWindows

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

AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

Sign up for our Newsletter and
stay informed

3 Comments

Leave a Reply to Chester Wilson Cancel reply