Android GPS location accuracy issue

前端 未结 3 1036
青春惊慌失措
青春惊慌失措 2021-01-30 09:16

I am working on gps tracking apps in android. Here is my code architecture:

  1. BackgroundSyncService : A service class that is used for getting locat
3条回答
  •  爱一瞬间的悲伤
    2021-01-30 09:40

    +1 for the description in question.
    I hope we find the best answer for your question and better it over time, from what i know..there won't be just one correct answer here.

    First,(and second)

    1. How can i make accuracy level near 99%. Is there any problem on my code architecture?

    2. Does GPS accuracy depends on device configuration? if YES then what can i do for low configuration device?

    Both - device configuration and code architecture, are important here. If you are already at an 85% success rate, the code architecture is alright i think.
    As far as GPS goes, line-of-sight is an important factor when it comes to device configurations and accuracy. Although a low cost mobile could return an accurate location with a clear line-of-sight. You can try running 2 cycles more/waiting to attain higher accuracy.

    In a worst case scenario and for what its worth, you can also try retrieving location using the LocationManager and GPS provider technique which works as a fallback in the 15% just to compare and ensure you are using the most accurate location you can get. Location Strategies put it as

    In most cases, you'll get better battery performance, as well as more appropriate accuracy, by using the Location Services API.

    1. How Uber, Go-JEK etc. ride sharing apps works for all device? Is they have extra coding for GPS only?
      They do work but not always with highest of accuracy for locations received within the app. If there are any location hacks for us developers, we need to find them, maybe a 5th page google search result :) or benefit from the open source environment. For me, best practices and android repo links suffice. You have already followed posts like Receive location updates

    2. My application is for Bangladesh. Here internet is slow. Is it has negative impact on GPS accuracy?
      No relation between internet and LocationManager + GPS_PROVIDER

提交回复
热议问题