简体   繁体   中英

Android: Tracking GPS location

I was wondering a few things:

  1. Is there any way to track the GPS location of an android device with NO wifi?
  2. If so, how could I trace the path on my android maps app (ie. a red line visually representing where I am going)

Thank you.

If it is a phone, you could write an application that uses the base station signals to triangulate your location, but accuracy would vary.

You could also buy an external GPS usb device - eg: Garmin GPS18x, and write an app to poll it via a serial port. It's not hard.

If you need to upload to a server, you will need a connection, so other than wifi, a cellular plan is your next best option. If you don't need real time upload, you could store the photos and gps data to upload at your convenience.

To trace the route, loop through your points and create polylines between consecutive ones, eg: 0-1,1-2,2-3, etc. See related question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM