Jump to content
Doug Downs

Delphi 11 Android 14

Recommended Posts

I currently have a Delphi 11 app that installs & runs fine on several Android devices & versions. My issue is when I try to run it on an Android 14 device, I have inconsistencies. Is there a reason I am having issues on this version of Android?  

Thanks for your help.

Share this post


Link to post
4 minutes ago, Doug Downs said:

Is there a reason I am having issues on this version of Android?  

There have been changes in later versions of Android that are not necessarily supported by Delphi 11. The easiest solution is to stay current with Delphi, i.e. use Delphi 12.2*. Otherwise, indicate what the "inconsistencies" are that you are having trouble with, as they might be resolvable.

*I should point out that even using Delphi 12.2 may not resolve all your issue(s) - you may still need to change your code to allow for later versions of Android.

Edited by Dave Nottage

Share this post


Link to post

I have an issue with the datetime string MM:DD:YY HH:MM am/pm in a particular field dropping the pm. I have installed Delphi 12 Trial to see if the same Andriod 14 device does the same on D12/A14.

 

I am getting about 40 errors when trying to build and run on D12/A14.  Below are just the first 4. 

[PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\23.0\lib\android\Debug\annotation-1.2.0.dex.jar:

[PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\23.0\lib\android\Debug\annotation-1.2.0.dex.jar

[PAClient Error] Error: E7688 Error in c:\program files (x86)\embarcadero\studio\23.0\lib\android\Debug\asynclayoutinflater-1.0.0.dex.jar:

[PAClient Error] Error: E7688 java.nio.file.NoSuchFileException: c:\program files (x86)\embarcadero\studio\23.0\lib\android\Debug\asynclayoutinflater-1.0.0.dex.jar

 

Any ideas? Thanks.

Share this post


Link to post

It got Delphi 12 Trial running, building, and executing.  Thanks a lot.

 

ANOTHER PROBLEM I'M HAVING...

 

Prior to Android 14, I was able to get StrToDateTime to work with AM/PM in the DateTime, i.e. StrToDateTime('02/08/25 6:23:18 AM', DateTime); and it ran fine.

Now when I deploy to an Android14 I get an error "Project.<project name> raised exception class EConvertError with message "2/6/25 10:0:00 PM' is not a valid date and time'. I can enter the datetime as 24-hour time, i.e. '2/6/25 22:00:00 and it converts fine... only when I have AM or PM I get the error. 

 

All help appreciated.

Share this post


Link to post

 

3 hours ago, Doug Downs said:

"2/6/25 10:0:00 PM' is not a valid date and time'

This value works OK on my Android 15 device (a Pixel 6 Pro), so I'd assume if I had Android 14 it would work, too. It may be to do with the regional settings on the device. One way you can check is by examining the value(s) of: FormatSettings.ShortTimeFormat, FormatSettings.TimeAMString and FormatSettings.TimePMString

 

Share this post


Link to post

I'm guessing it's a Delphi 12 issue...

 

    FmtStngs := TFormatSettings.Create();
    FmtStngs.DateSeparator := '/';
    FmtStngs.ShortDateFormat := 'm/d/yy';
    FmtStngs.TimeSeparator := ':';
    FmtStngs.LongTimeFormat := 'h:nn:ss AMPM';

    edStartOverrideDateTime.Text := '02/09/25 11:21:03 AM';
    BooleanField := TryStrToDateTime(edStartOverrideDateTime.Text, DateTimeField, FmtStngs);

Returns "false".

I get the same "false" return when I try:

    BooleanField := TryStrToDateTime('02/09/25 11:21:03 PM', DateTimeField, FmtStngs);
yet 24-hour time works fine (returns true):

   BooleanField :=  TryStrToDateTime('02/09/25 23:21:03', DateTimeField, FmtStngs);

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×