New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation to the external SD card #3
Comments
Ill look into this. Does it work when you try the demo app? |
Same with the demo. |
It seems like I just need to make the parent directory just /storage, then the user can navigate wherever they want to. What I think I'm going to do is allow users to pass a start directory themselves and that way you can make it whatever you'd like. |
I cloned locally your lib. When I tried this method, there were plenty of drives like usb1, usb2 etc... and when you click on it the app crashes. In my case, I had the top sd card directory availabe in my app so I just pass it to the cloned lib in the intend. The way I got it in my app (an ActionBarActivity) is not so nice but pretty safe I think. Basically I took 4 times the parent of the sd app root folder (/storage/extSdCard/Android/data/myapp/files) to get the sd drive root folder (/storage/extSdCard). But it is only a personal app (not for the store). I was lazy to look up in the official API. isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); File[] files = android.support.v4.content.ContextCompat.getExternalFilesDirs(this, null); |
Did the code above work? |
yes but i tested it only on my samsung s4. It should also work on all android devices as they all should have the same file system structure (application folder at the fourth level). I cross fingers. |
Ok Ill let you know what happens |
First,thank you for your work. |
@Madaditya this is still a work in progress. I haven't had the opportunity to add this feature yet but it's on the list of todos. |
Is it possible to navigate to the external SD card. I can't select it.
Thanks in advance and kind regards.
The text was updated successfully, but these errors were encountered: