I am working on an application that takes GPS encoded images.
I can get about 15-20 meters of GPS signal accuracy when I donβt start the camera and have at least 3 satellites in range, sometimes 5-7 satellites.
However, when I start an activity that displays a SurfaceView with a camera connected and a GPS code, my accuracy goes down (> 100 meters), but only on some phones.
Phones on which he does not work:
- Droid Incredible 2
- HTC Wildfire
- HTC Inspire
Phones he is working on:
- Atrix
- Galaxy Tab
- Motorolla Droid (original)
So my questions is why this will happen? And of course, how can I fix this?
Here is my code that I use to play GPS
try{ locator = new GeoLocator(this); locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationManager.addGpsStatusListener(new GPSStatusManager(locationManager)); Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); criteria.setPowerRequirement(Criteria.NO_REQUIREMENT); bestProvider = locationManager.getBestProvider(criteria, true); Bundle bundle = new Bundle();
Casey source share