android - Error while stopping Location Sensor Firemonkey XE6 -
To achieve latitude and longitude values I am using TLocationSensor my GPS enabled And I'm using network space. I save prices using the event onLocationChanged and set the property to active wrong, but an error occurs.
Debugging I found inside the unit System.Android.Sensors , on process TUIAndroidLocationSensor.DoStop , the line that removes the listener does not verify If GPSListener is zero and puts an exception that closes my app when I compile it for the Android platform, for 32-bit Windows platforms, then this problem does not occur .
How can I solve this problem?
Edit: This issue was resolved on the FireMoner XE8.
Since fixing this bug only Copy When you compile your project, Delphi will use your fixed in the implementation section System Modifying the Android Sensors Code is easy, you can easily fix the code yourself. System.Android.Sensors.pas to your project folder and add it to the project. Then add zero check check in TUIAndroidLocationSensor.DoStop method to fix the bug. system instead of Android.Sensors by default.
Comments
Post a Comment