Jump to content

at3s

Members
  • Content Count

    68
  • Joined

  • Last visited

Everything posted by at3s

  1. I'm trying to use some custom button's style looks like in screenshot. There is just added TRectangle (in blue) in back of other controls. But this stopped button pressing event hiring - when press on button, it does nothing. Where is my bad?
  2. at3s

    Custom button's style (TStyleContainer)

    Thanks, it's a solution.
  3. 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?
  4. 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?
  5. Thank you for your respond. Permission request is before screen create procedure calling, so it's ok, thanks again.
  6. 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.
  7. Ok. Somehow fixed using OnLocationChanged event.
  8. 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.
  9. Actually problem becomes in Android 10, in Android 6 I have so fine. I just have developed a form which shows folders and files in TPath.GetSharedPicturesPath directory. I have ask to grant READ_EXTERNAL_STORAGE permission for application, it is properly granted, checked in system. But TDirectory.GetDirectories(TPath.GetSharedPicturesPath, '*') returns an empty list of folders as well as TDirectory.GetFiles(TPath.GetSharedPicturesPath) returns an empty list of files in Android 10. Even I get a level up folder. Any idea?
  10. 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?
  11. I will do as you mentioned, it sounds correct.
  12. 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.
  13. Yup, I already found the source where it raises. So how close\hide iOS application using Delphi? I'm new with it.
  14. 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.
  15. The problem fixed by installing the Patch 1 for Alexandria 11.2. RAD Studio 11.2 Alexandria Patch 1 Available (embarcadero.com)
  16. 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.
  17. Well, sounds bad for me. Thanks for responds.
  18. 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.
  19. An Android application compiles fine in Delphi 10.3.3 Rio, but after I've migrated to Delphi 10.4 Sydney I started to get an error: Has anyone something similar?
  20. The latest version have to work for you. Erik@Grijjy already done required changes: https://github.com/grijjy/JustAddCode/blob/master/ErrorReporting/Grijjy.ErrorReporting.pas
  21. I have a FireMonkey application which works fine in an Android. Now I want to build it in iOS. But the problem is, I did never it before. Can someone explain what exactly I have to do? F.e. Mac ot not, if 'yes' - what configuration, OS, iPhone or enough is simulator etc? Simple things for someone with the skills...
  22. Thanks. Another question. Is it possible to access remotely to the Mac device where PAServer is running? Or should this Mac be in the same LAN network where is the Delphi machine rather?
  23. at3s

    Rating an android application

    I want to add a feature so user shall be able to rate my android application - set a range of stars. Does someone can show me a sample code how to do this?
  24. Actually I'm looking for a function which could convert TBitmap to TBytes for printing in ESC/POS Thermal Printer. I'm trying to make working a code from here, but also got an effect as on the author picture - white lines and not correct text on an image as well. Has someone a working code?
×