Apparently loading a bitmap from a file or a stream from within a thread on Android in Delphi XE5 Firemonkey has a problem. It causes your app to exit completely according to a question and answer on StackOverflow. If you’ve been having problems with bitmaps and threads at all on Android try adding this code fix and see if it takes care of it. The fix involves overriding the EndThreadProc procedure from System.Classes in the OnCreate event of your form. User ioan posted the fix to StackOverflow and Antonio Tortosa from Embarcadero posted the original fix to the Embarcadero forum (see threads here and here). I tested the fix on Android with uImageLoader and it did in fact fix a crash with that class. Override EndThreadProc with the following procedure: uses
PActivity := PANativeActivity(System.DelphiActivity);
FMXExpress.com has over 700 tips and tricks for building cross platform apps on Android, IOS, OSX, Windows, and Linux with a single codebase and single UI using the FireMonkey framework found in Delphi and C++Builder.
FMXExpress covers top cross platform secrets for FireMonkey in C++Builder and Delphi XE5, XE6, XE7, XE8, Seattle, Berlin, Tokyo, Rio, and Sydney.