我需要api密钥才能通过Google Play服务获取Android中的最后一个已知位置吗? [英] Do I need an api key to get last known location in Android with Google Play Services?

查看:116
本文介绍了我需要api密钥才能通过Google Play服务获取Android中的最后一个已知位置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近刚刚开始学习Android,并且正在开发小型项目,以了解我需要的基本知识,以便开展一个更大型的项目。我需要让用户知道最后的位置。我浏览过本教程,它不会连接到播放服务。我需要一个API密钥来获取最后一个已知位置吗?还有什么是在Android中实现位置感知的最简单方法?

I just recently started learning Android and am working on small projects to learn the essentials I need for to work on a larger project I have coming up. I need to get the users last know location. I went through this tutorial, and it wouldn't connect to play services. Do I need an api key to get the last known location? And also what is the easiest way to implement location awareness in Android?

推荐答案

您不需要给任何 API 位置。集成时需要 API key Android应用中的 Google地图 使用Google Play服务的Android位置API

You need not to give any API key to fetch last known Location. API key is needed when integrating Google Maps in Android app. Android Location API using Google Play Services

这篇关于我需要api密钥才能通过Google Play服务获取Android中的最后一个已知位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆