简体   繁体   中英

Location and Google maps in android

i am working on Locations and Google maps and i came across this link --> GSM-Tracker

Following this link i retrieved MNC, MCC, LAC and CID values of my mobile...but now i need to know whats the logic or a code behind the button TRACK IT (in this link) that it directly gives me my location...

mine is an android app so what piece of code should i write..that my button leads me to google maps showing me my exact location

OR any idea how to transform this php code in android ????

There are 2 options in order to retrieve the location of a device.

  1. Fused location api
  2. Location manager api

There is a whole free course by Udacity about google location services. What I suggest is that you should use the fused location as it is more optimal for the battery. For implementation see the links.

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