Tibor Molnar 0 Posted December 7 Hello, I used Delphi 11 CE to develop for Android 14, 32 bit for a year, it was working fine. Now I started my old app on Android 14 and it stopped working though it was running fine before. I installed the newest 12.1 Community Edition in a new, clean install Win 11, even java was missing on it. The Delphi installer installed the Android platform without any problem. Android 14 / Realme GT 2 Pro Now even the simpliest Android apps are not running stable on Android 14 for me. A create a new multi device application project, with MasterDetail template. I tried with SDK 25.2.5, SDK 35.0.2, with 32 bit, 64 bit, none of them runs correctly. It is intalled, starts but halts after a few seconds with exception class 10 with 64 bit, SDK 35 It is intalled, starts but halts after a few seconds with exception Segmentation fault 11 with 32 bit, SDK 25 I put a debug breakpoint on project source Application.Initialize but either halts before reaching it or not stopping at it; I tried to make my old app alive, it needs permissions READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, and Camera. It starts but is not asking for permissions from the user but in the code in RequestPermissions_Result i see that I did not get it for READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE Android 9 / Samsung S8 Seems to work perfectly, both SDK, both 32 and 64 bit Debugging works fine. Thank you for your help Share this post Link to post
alejandro.sawers 11 Posted December 7 There are multiple issues here, but let's start with this one: 3 hours ago, Tibor Molnar said: It starts but is not asking for (...) READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE From Android 11 onwards the storage permissions model has changed. Please see the official documentation about WRITE_EXTERNAL_STORAGE and, depending on your app's specific needs, you should not have problem on finding and implementing an alternate solution for modern Android versions. Share this post Link to post
Tibor Molnar 0 Posted December 7 (edited) Thank you, I will check the documentation and correct the requested permissions. This part is related only on my own application. I am still looking for the answer how it is possible that those simple, basic applications described above, which were running fine on Delphi 11, Android 14, 32 bit, now does not even start on a clean install Windows, clean install Delphi 12.1 CE, on the same mobil device. Edited December 7 by Tibor Molnar incorrect Delphi version number was given Share this post Link to post
alejandro.sawers 11 Posted December 9 A common issue when compiling the same Android project between Delphi versions is that system libraries change, but the project doesn't update them automatically (by design apparently) so try that first. Also check if your project has custom versions of Delphi units and delete/update them as these can be a source of incompatibility issues. Share this post Link to post
Tibor Molnar 0 Posted December 10 Thank you, I will check those in my own old app. Regarding the simple test projects, it seems that one of the problems was that the default New Project function adds permissions which are depreciated in Android 14. So I cleared all permissions. The app is installed, starts, seemingly runs fine on the device, but still gives exception in the IDE. Share this post Link to post