Hi,
I did get some wierd behaviours in my app. So I used the example of Martin again. (attached).
On the device settigns I have in location Services:
Use wireless networks : ON
Use GPS satellites : OFF
I will start the program "Location Client" and press the button "Tracking OFF". New locations updates are comming and everything seems to works fine.
Now I switch off in the settings Location Services:
Use wireless networks: OFF
rest is the same
THe programs stops updating locations (which seems locical). Now I go to the settings Location Services:
Use wireless networks: ON
rest the same
I expect that the service sees the change and start updateing again. But it won't infact when I press the button "Tracking ON" and stat again "Tracking OFF". this will not help it all. Also killing the program and start again won't help. I need to reboot my device and than it works again????
Another thing I expected when I press "Tracking ON" (which destroy the service) is that the procedure:
Sub LocationClient1_Disconnected
Log("LocationClient1_Disconnected")
StopService("")
End Sub
will be called. This is not the case. So when I call again the service and this will be started the LocationClient is still connected. Even though the
LocationClient1.Disconnect is called when the Service will be destoryed.
Could some of you check this on your device? I used an Samsung Android S2 4.1.2.
Is there a failure in the demo code or library? Or is it my device that behaives wierd?
Thanks
Marcel