xamarin - Track GPS Route accurately Android -
i writting application tracks users real time location , show on map. results seeing not satisfactory. when compare app others present on play store difference lot.
here things have tried far: (just in case using xamarin build application)
i have earlier used fused location api, gave of deviation users current location. so, tried location manager using gps_provider. using accuracy increased lot still not perfect.
below code using location manager:
protected void createlocationrequest() { if (locmgr.allproviders.contains (locationmanager.gpsprovider) && locmgr.isproviderenabled (locationmanager.gpsprovider)) { locmgr.requestlocationupdates (locationmanager.gpsprovider, 3000, 2, this); } } public void onlocationchanged (location location) { console.writeline ("onlocationchanged"); if(location != null && location.accuracy <= 20){ drawpath (location); } }
below screen shot of application:
below screenshot of app playstore
Comments
Post a Comment