Android Question Help Accessing Files

MrKim

Well-Known Member
Licensed User
Longtime User
Seems like you can't get there from here
I upped the API version to 26 as required.

I have copied a bunch of files from Windows to my tablet VIA usb cable. I need to access (read only) those files from my app.

The app can't get them from where I put them (I tried several places) I get:
java.io.FileNotFoundException: /storage/emulated/0/Skdata/E057338-04.bmp: open failed: EACCES (Permission denied)

So I tried to use RuntimePermissions.GetSafeDirDefaultExternal("Skdata"). The directory is there but I am unable to copy anything into it using an Android file manager. The RuntimePermissions.GetSafeDirDefaultExternal("") does not even show up when I access the tablet from windows VIA usb port.

This is a one or two time thing. Basically I have an app that copies pictures and other documents from a windows directory on a Windows server that belongs to our customers and displays them. For demonstrations we do not have a server available so I went to put sample pictures. There are over 1000 representing many megs. Don't want to install them with the app.

Any ideas appreciated
 
Top