Wanna make an app? - That's simple!
Wanna make it work on different versions? - Learn rocket science.
Have seen the following answers and more, but none helped:
So, here's my AndroidManifest
chunk:
:
:
:
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PROFILE"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
:
:
and the relevant chunk from build.gradle
:
:
:
android{
compileSdkVersion 23
buildToolsVersion "23.0.2"
:
:
When I first installed the app on Marshmallow (6.0.1), the installer said (something very similar to) - "it requires no special access (or permissions)". The app failed to go beyond the splash screen too, whereas on other Android versions, the sailing is smooth and complete.
The answers listed above explain why, (change in the permission model etc.), from which I cannot figure out what really to do.
My requests are:
- Please let me know how to make the app install exactly as it installs on lesser versions than 6.0.
- How to keep code changes (if required) to the barest minimum
- How not to complicate the existing, automatic permissions request at install time (with run-time permissions and all that).
Many thanks in advance!