Skip to content

Commit

Permalink
Add gps feature request to manifest for Android 5+
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jun 8, 2018
1 parent e7909cb commit dc648fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@
<uses-sdk android:minSdkVersion="19"
android:targetSdkVersion="24"
tools:ignore="OldTargetApi"/>

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- uses-feature indicates to Adnroid 5+ that we want to use hardware to get the location.
see: https://developer.android.com/guide/topics/location/strategies#Permission -->
<uses-feature android:name="android.hardware.location" android:required="false"/>
<uses-feature android:name="android.hardware.location.gps" android:required="false"/>
<uses-feature android:name="android.hardware.location.network" android:required="false"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"/>

<!-- READ_EXTERNAL_STORAGE required if users want to include photos from their phone;
WRITE_EXTERNAL_STORAGE required for taking new photos, and our resizing code.
WRITE implies READ. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<application android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
Expand Down

0 comments on commit dc648fd

Please sign in to comment.