Reputation: 1
My android apk which was running nice on android 10 and previous version, but in android 11 my app getting crash as soon as I download it from google play store, It show only splash screen and then automatically app getting crash
I had given following permission manifest : camera, location, storage, phone
but it throwing security exception :
SecurityException: getDataNetworkTypeForSubscriber
and also not able to debug further because app getting crash immediately
Upvotes: 0
Views: 1403
Reputation: 190
You need to add android:requestLegacyExternalStorage="true"
in AndroidManifest.xml
file into application tag.
android:requestLegacyExternalStorage is give users more control over their files and limit file clutter
Upvotes: 1