Hi, This is very critical for me. Could someone respond immediately ?
Thanks, Laxmi On Sunday, November 20, 2016 at 6:11:29 PM UTC+5:30, [email protected] wrote: > > Hi all, > > Greetings > > I have Samsung Galaxy J7 loaded with Marshmallow (Android 6). I am unable > to read the contents of my SD card. Basically, I am trying to read csv > files stored in my SD card > > . Could you please help ? > > Here is a brief description of my problem: > > 1. I am trying to read files from my external SD Card. I have obtained the > required permissions using request permission using checking and asking for > Manifest.Permission.READ_EXTERNAL_STORAGE Even after that, android just > gives getExternalStorageDir() as /storage/emulated/0 and because of this I > am unable to navigate to my my SD card to list contents. > > 2. These are snippets from Log files in Android Monitor that may be of > help. > 11-20 17:57:26.413 14330-14330/? D/HAT -: Permission already granted > 11-20 17:57:26.413 14330-14330/? D/HAT - getExternalStorageDirectory(): > /storage/emulated/0 > 11-20 17:57:26.413 14330-14330/? E/System: Ignoring attempt to set > property "user.dir" to value "//SD Card". > 11-20 17:57:26.413 14330-14330/? E/System: Ignoring attempt to set > property "user.dir" to value "/". > > 3. How can I set the path to my SD card after getting required permissions > for reading external storage in my app ? Please help > > Thanks, > Laxmi > > > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e28178ef-e763-494e-a7d6-557c8d1c7ce5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

