andrei.fifiita
07-02-2009, 10:34 AM
Hello, i'm not sure this is the right place to post but here it is:
I'm trying to build an app extending MapActivity and to simulate movement (simulate change of MyLocation)
For that I'm using android shell (connecting to localhost:5554) and then send commands: "geo fix [coord1] [coord2] "
But i have a problem with precision/accuracy
i called this method with the giving params:
locManager.requestLocationUpdates(LocationManager. GPS_PROVIDER, 0, 0, listener);
Example:
Sending: geo fix 26.446486 44.464973
Sending: geo fix 26.446745 44.465572
Sending: geo fix 26.447004 44.46617
Sending: geo fix 26.447264 44.46677
Sending: geo fix 26.447523 44.46737
Sending: geo fix 26.447783 44.467968
When i print the received coords i get this:
Loc changed: 44.457335816666664 26.43766885
Loc changed: 44.45733591666667 26.437668900000002
Loc changed: 44.45733601666667 26.43766893333333
Loc changed: 44.474000016666665 26.43766898333333
Loc changed: 44.474000116666666 26.43766901666667
So... the coords change only after the simulated location is significantly far from the first location (a few tens of kilometers i think)
How can I tell him to get those params with max precision ?
Pls help!
I'm trying to build an app extending MapActivity and to simulate movement (simulate change of MyLocation)
For that I'm using android shell (connecting to localhost:5554) and then send commands: "geo fix [coord1] [coord2] "
But i have a problem with precision/accuracy
i called this method with the giving params:
locManager.requestLocationUpdates(LocationManager. GPS_PROVIDER, 0, 0, listener);
Example:
Sending: geo fix 26.446486 44.464973
Sending: geo fix 26.446745 44.465572
Sending: geo fix 26.447004 44.46617
Sending: geo fix 26.447264 44.46677
Sending: geo fix 26.447523 44.46737
Sending: geo fix 26.447783 44.467968
When i print the received coords i get this:
Loc changed: 44.457335816666664 26.43766885
Loc changed: 44.45733591666667 26.437668900000002
Loc changed: 44.45733601666667 26.43766893333333
Loc changed: 44.474000016666665 26.43766898333333
Loc changed: 44.474000116666666 26.43766901666667
So... the coords change only after the simulated location is significantly far from the first location (a few tens of kilometers i think)
How can I tell him to get those params with max precision ?
Pls help!