title: Realtime locating of the android device from another device
body: <p>I have an app where i wanted to locate the exact location of the device. Like if you take taxi, i wanted to locate where exactly the taxi. Taxi driver will be using android device. So from that device i wanted to locate the cab location for other users who wants to see where the cab is.</p>
  
  <p>I have tried uploading current location of cab driver to server as cab moves for few meters by using <code>requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener)</code> and I have done this updating location of cab when the cab press some start button or something it keeps sending the current location of the device for X meters. </p>
  
  <p>From that updated location other users will call the service and find the current location of cab.</p>
  
  <p>At user side there will be a map where he can see the current location of cab. User calls the service to see updated location. I am calling the service by setting the TIMER on that activity so it refreshes and calls the server again and again.(Setting a timer is it best approach or any other ways of doing it).</p>
  
  <p>But this approach takes lot of data and battery and it is not even realtime. Is there any best approach to locate the android device so that it seems to be realtime atleast. </p>