Android, Google maps and changing "required" in uses-permission -
i have code in app uses google maps:
<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" />
i have started wonder though, if set these required="false" app presumbly generated shorter "requires" list when users download app... there reason not set them not required?
currently when loading maps
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)); } }
does have experience this? siuttations have not thought of setting required = false above menions can cause errors/exceptions in app?
there no android:required
attribute <uses-permission>
, ignored. not result in "a shorter "requires" list when users download app".
Comments
Post a Comment