简体   繁体   English

android中的位置和谷歌地图

[英]Location and Google maps in android

i am working on Locations and Google maps and i came across this link --> GSM-Tracker我正在处理位置和谷歌地图,我发现了这个链接 --> 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...按照此链接,我检索了我手机的 MNC、MCC、LAC 和 CID 值……但现在我需要知道按钮 TRACK IT(在此链接中)背后的逻辑或代码是什么,它直接为我提供了我的位置。 .

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我的是一个 android 应用程序,所以我应该写什么代码......我的按钮引导我到谷歌地图显示我的确切位置

OR any idea how to transform this php code in android ????或者知道如何在 android 中转换这个 php 代码????

There are 2 options in order to retrieve the location of a device.有 2 个选项可以检索设备的位置。

  1. Fused location api 融合定位api
  2. Location manager api位置管理器 API

There is a whole free course by Udacity about google location services. Udacity 有一个关于谷歌定位服务的免费课程 What I suggest is that you should use the fused location as it is more optimal for the battery.我的建议是您应该使用熔断器位置,因为它更适合电池。 For implementation see the links.有关实施,请参阅链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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