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 in the implementation section System Modifying the Android Sensors Code is easy, you can easily fix the code yourself.

Copy 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.

When you compile your project, Delphi will use your fixed system instead of Android.Sensors by default.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -