I have an interesting problem with TLocationSensor . If there is a location in the android menu before starting my application, the sensor works fine. I caught the OnLocationChange event . But if I don’t allow “Location in the Android menu” and start the application, then allow the location in the Android menu sensor does not start!
The OnLocationChange event is not raised.
Set LocationSensor1.Active: = true; will not help in this case.
Or how can I automatically resolve the location after starting my application?
I am using Delphi XE10.1 Berlin and Android 6.0
source
share