Android App created by Delphi XE5 starts very slow

Mike picture Mike · Oct 9, 2013 · Viewed 10.5k times · Source

I have developed a few Android apps with Android SDK using Java and now that XE5 is out and i am a very experienced Delphi developer i tried a few samples off android apps and my impression is that android apps designed with XE5 runs very slowly, they start very slowly, almost 4 secs with a black screen, that ruins the whole experience.

I know XE5 Android apps run in native code, one more reason for this not happening, they should be extremely fast

Is there anything i can do about it?

I am using a Samsung Galaxy S2 to test, so it's not about the testing equipment.

Answer

blong picture blong · Oct 9, 2013

They are a bit slow to load due to the size of the native library that is loaded into memory to run.

Make sure you are running a release build on a new, capable device and it's not so bad.

But you'll always have a large native library, as things currently stand.

One possible course of action is to distract the user by use of a splash screen. This, however, is not straightforward. However it is feasible. It will be documented somewhere or other in a week or so.