Hi!
Android app. seems working fine in debug or release (Development) mode on my Android device. But if I upload the AAB file to Google Play Store and install it from there it exits on startup. Not sure if it's a crash I have very little experience with Android.
The project is from the XE5 era.
Tried:
- Deleted the manifest file, so it was re-created by Delphi
- Did a "Revert system files to default"
- Did a "Revert to default" in Deployment
Google Play Store page: https://play.google.com/store/apps/details?id=com.embarcadero.MP4StreamEditorClient
As I wrote it seems working fine if I start it through Delphi+USB and also if I start it after it has been installed by Delphi, just the Install and start from Play Store does not work.
Any ideas?
Thank you!
3delite
@3delite
Loading dynamic libraries on Android is not that trivial, you will still have problems on some devices of some manufacturers. Here are 3 main tips:
1) Filename: ALWAYS suffix "lib", like "libbass.so"
2) Deployment:
On 32bit, the remote path "library\lib\armeabi-v7a\"
On 64bit, the remote path "library\lib\arm64-v8a\"
Also on 64bit, add the 32bit binary with the remote path "library\lib\armeabi-v7a\" and the condition "'$(AndroidAppBundle)''==''true'" (with the quotes). The condition you can only change via ToolsApi or manually in .dproj.
See how we do it: https://github.com/skia4delphi/skia4delphi/blob/eed4afbf8a34137a9bfa308bcb5ef87cee84abcb/Source/VCL/Designtime/Skia.Vcl.Designtime.ProjectMenu.pas#L219-L221
3) Loading:
First try to load using only the filename, and in case of failure use the library path + filename.
See how we do it: https://github.com/skia4delphi/skia4delphi/blob/eed4afbf8a34137a9bfa308bcb5ef87cee84abcb/Source/Skia.API.pas#L2119-L2124