Cannot access files or folders from SD card in Android version>6 versions
-
I am using qt version of 5.5.1 and my application works pretty well in android 5 however, my tablet got update yesterday and android version now 6 (marshmallow) and my application doesn’t see contents of sd card. However, sd card directory is exist but when I try to access any directory in Sd card I couldn’t access this directory with Android version>6.
-
-
and see this app HowTo do it:
https://github.com/ftylitak/qzxing/tree/master/examples/QZXingLive -
This post is deleted!
-
@SGaist @ekkescorner Thanks for replies but as you mention that, I exemine the article and I followed those steps. After granted permission to read to SD card (Manifest.permission.READ_EXTERNAL_STORAGE,Manifest.permission.WRITE_EXTERNAL_STORAGE), I couldn’t reach the SD card path it returns false in Android >6 as I mentions below. The same code block works fine in Android 5. Besides, I use the code bloks by ekkescorner but I got the same fault. Thats all which I can say I wait a response as soon as possible.Thanks.
File file = new File("/storage/extSdCard/TPK/Tpk.tpk");
Log.i("file.exists : ",file.exists());