【发布时间】:2017-03-31 02:57:00
【问题描述】:
我创建了一个应用程序,在该应用程序中我需要用户在 Codename One 中的 GPS 位置,但是当我安装该应用程序时,系统提示我授予权限
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
我知道 Codename one 通过检查代码添加了权限,所以我不确定是什么触发了这个权限,所以我可以删除它。我唯一使用位置的地方如下:
Location location = LocationManager.getLocationManager().getCurrentLocation();
JSONObject jsonLocation = new JSONObject();
jsonLocation.put(Constants.Latitude, location.getLatitude());
jsonLocation.put(Constants.Longtitude, location.getLongitude());
如何删除此权限?
【问题讨论】:
标签: gps codenameone android-gps