Delphi Android Location Sensor not working if Location allowed after application start


I have interesting issue with TLocationSensor. If Location alowed in android menu before start My application, sensor works fine. I catching event OnLocationChange. But if i not allow Location in android menu and start aplication and then allow location in android menu sensor not started working !

Event OnLocationChange not called.

Set LocationSensor1.Active := true; not help in this case.

Or how I can automatically allow Location after my application starts ?

I using Delphi XE10.1 Berlin and Android 6.0

Comments are closed.