如何在Google地图中显示我当前的位置?

时间:2016-04-18 21:44:46

标签: android google-maps

我知道此问题之前已被问过,我想在google地图中显示我当前的位置。所以,我尝试按照本教程中的步骤Getting Started With Google Maps for Android: Basics

在第3步:配置地图中,我遇到了这个错误:

I add this line because android asked me to <code>call requires permission which may be rejected by user:code should explicitly chek to see if permission is available</code>

我添加此行,因为android要求我call requires permission which may be rejected by user:code should explicitly chek to see if permission is available

感谢。

1 个答案:

答案 0 :(得分:0)

而不是传递getActivity()传递prime