RunTime Permission Not Granted When It Exists In Manifest(Android) [duplicate]
RunTime Permission Not Granted When It Exists In Manifest(Android) [duplicate] This question already has an answer here: I am trying to save a csv file to my phone and my target SDK level is 26 so I tried to check run time permissions while running my app. Even though I gave the necessary permissions in manifest file, in my activity checking this permissions return false. How can I fix this? Start of the manifest file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.something"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> Related part of activity is below public void saveToExcel() throws IOException { String baseDir = android.os.Environment.getExternalStorageDirectory().getAbsolut...