I have written a small app, that has a Activity to control and display
data, and a Service that Gets data from the GPS and send it to the
Activity.
Reason for this is that I like this to run even after the Activity is
exited..
I did a work around where I in the end of my Location Listener remove
the listener and redefined it..
lm.removeUpdates(locationListener);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, iGPSMovement, locationListener);
But It is not nice and now it fails on my HTC desire Z..
Has someoen encountered this?
What is the work around?
I have written a small App (One activity) that do not uses a Service and that
works fine with the requestLocationChange only called at onCreate..
Please help
Kim
OK so I tried to rewrite a super simple Service and Activity and using a broatcast reciever and that worked like a charme..
So I converts my app and it is still not working… But I then found that the Meters movement HAS to be 0 for the request to work on my Desire.. Is that odd or what? Anyway that solved my issue..
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 0, locationListener);Is what I ended up with and that seams to fix everything regardless of how I communicate to between service and Activity..