I have a weird problem. I have written a small java midlet. It collects GPS data (in NMEA form) and writes to the display in a thread. It calls DeviceControl.setLights(0, 10) periodically not to fade display. It works nicely. For a while...
But after exactly 126 getLocation calls (normally it gives back data in every second) it can not receive data! It throws "Location request timed out". I measured many times and this 126 second seems to be a magic number! Even if I add 1000 ms sleep between the getLocation calls in the thread.
Could anyone explain what could happen? Is there some kind of limitation in LocationProvider??? Should I call getInstance periodically?
Thanx in advance!