Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法获取与用户在设置他们的谷歌电视盒时提供的邮政编码相对应的纬度和经度?
根据 Google 的 Christian Kurzke 在 AnDevCon II 上的介绍,您使用:
Location loc=lm.getLastKnownLocation(“static”);
这将需要ACCESS_COARSE_LOCATION许可。
ACCESS_COARSE_LOCATION