1
我目前在使用谷歌地图的应用验证码:的Android,谷歌地图和用途,允许改变“需要”
<uses-permission android:name="com.example.app.permission.MAPS_RECEIVE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
我已经开始,虽然不知道,如果我将所有这些所需=“false”当应用程序用户下载应用程序时,应用程序会短暂地生成一个较短的“需求”列表......是否有任何理由不将它们全部设置为不需要?
目前我做这个加载地图
时private void setUpMapGoogleIfNeeded() {
if (mMapGoogle == null) {
mFragmentManager = getSupportFragmentManager();
mSupportMapFragment = (SupportMapFragment) mFragmentManager.findFragmentById(R.id.mapFragment);
mMapGoogle = mSupportMapFragment.getMap();
if (mMapGoogle != null) {
mMapGoogle.setMyLocationEnabled(SharedCode.sharedSupportsGPS(true, thisActivityContext));
}
}
有没有人有这方面的经验?我没有想过为上面的menions设置required = false的情况是否会在我的应用程序中导致错误/异常?
似乎你是对的。谢谢! – Tom