What is the difference between these two syntaxes.
android:uses-permission
and uses-permission
. For example:
<android:uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
The first one was automatically added to the manifest by Android Studio when I created an activity that reads from storage. Also why did it add an android:maxSdkVersion
attribute and specifically set it to 18 when I have targetSdkVersion
for the project set as 21.