Jump to content

at3s

Members
  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

4 Neutral

Technical Information

  • Delphi-Version
    Delphi 10.4 Sydney

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you for your respond. Permission request is before screen create procedure calling, so it's ok, thanks again.
  2. Yes, there is PermissionRequest in the code, but I did not provide it here. It executes before a screen showing. Your code works fine and it's more elegant and correct than my trick with the OnLocationChanged event, thanks for an answer.
  3. Ok. Somehow fixed using OnLocationChanged event.
  4. Yes, and a location finding works fine at the second and next times. When I did a trick with the repeat ... until + ShowMessage - after few times it found a location. But when I commented ShowMessage, it stopped to work at first execution. Weird behaviour.
  5. I have a screen with the: LocationSensor: TLocationSensor; And code: procedure Tfrm.FormCreate(Sender: TObject); begin LocationSensor.Active := True; end; procedure Tfrm.FormClose(Sender: TObject; var Action: TCloseAction); begin LocationSensor.Active := False; Action := TCloseAction.caFree; end; procedure ShowLocation(); var mapPosition: TMapCoordinate; begin frm := Tfrm.Create(Application); try mapPosition := TMapCoordinate.Create(frm.LocationSensor.Sensor.Latitude, frm.LocationSensor.Sensor.Longitude); ShowMessage(FloatToStr(frm.LocationSensor.Sensor.Latitude) + ' | ' + FloatToStr(frm.LocationSensor.Sensor.Longitude)); finally frm.Show; frm.BringToFront; end; end; When I call ShowLocation(); in Android 12, it returns 'NaN | NaN' first time, after that each calling returns correct coordinates. Is it a known issue or did I miss something?
  6. I will do as you mentioned, it sounds correct.
  7. Yes. Yes. But is there a way to move an application at least in background mode like [Home] iPhone hardware button does? Sure, the easest way will be to hide those [Exit] button from the application in case it doesn't work in iOS.
  8. Yup, I already found the source where it raises. So how close\hide iOS application using Delphi? I'm new with it.
  9. Delphi 11.2 patch 2. iOS application raises "EUnsupportedPlatformService with message 'Unsupported platform service: Terminate'" error upon Application.Terminate; or MainForm.Close; There is no problem with Android application. Actually it's [Exit] button functionality in the application. Can someone help?
  10. at3s

    OpenSSL fails to Load

    I'm using libssl.so v 1.0.2r in my project and there was not a problem with the Android migration from Delphi 10.4 to 11.2. Sure, there are files for Android32 and Android64.
  11. The problem fixed by installing the Patch 1 for Alexandria 11.2. RAD Studio 11.2 Alexandria Patch 1 Available (embarcadero.com)
  12. Unfortunately I got the same error when was trying to build an iOS application on "Apple M1" chip\processor. What is wrong with this? I noticed, when I run a Windows version of this application built in Delphi 11, it required midas.dll. It was not when an app was build in Delphi 10.4. iOS fault on libmidas.a. [DCC Error] E2597 ld: in c:\program files (x86)\embarcadero\studio\22.0\lib\iOSSimARM64\Release\libmidas.a(C:\Projects\Olympus\tp\intermediate\release\lib\midas\iosdevice64\alchemy.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 Just a notice.
  13. Well, sounds bad for me. Thanks for responds.
  14. Unfortunately it's an Intel - 2.3GHz Dual-Core Intel Core i5. Yes, the project built (but not ran) fine on "iOS Device 64-bit" platform. The issue is - I've not connected an iPhone. Because it's my first iOS project and even was not sure I'll be able to finish it for iOS platform. So I was thought a simulator shall be enough.
  15. I'm trying to build my FMX iOS application. When I've selected iPhone, the project built fine. I'm not able to debug an application, because I do not have iPhone attached to my Mac machine. But an error has been occurred when I've selected simulator (see a screen shot): [DCC Error] E2597 ld: in c:\program files (x86)\embarcadero\studio\22.0\lib\iOSSimARM64\Release\libmidas.a(C:\Projects\Olympus\tp\intermediate\release\lib\midas\iosdevice64\alchemy.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 Any idea how to fix this?
×