-
Notifications
You must be signed in to change notification settings - Fork 0
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
#1: The ... goes back to the beginning instead of back one folder. #2
Comments
If you are using java.io.File as the data source (e.g. ArrayList), then you can just use the getParentFile() method of that class to return the parent. There are some subtle differences between platforms, which is why it is best to use the built-in functionality. |
This class can also make it easier to find the contents, if you aren't already using it. If you aren't, though, this could be a big change with little benefit (since this is all Android, so platform differences should not be an issue). |
The easier way, without switching to ListView would be to use filename.lastIndexOf("/") and use that as the end index in filename.substring(0, end). |
.. now successfully goes back a single folder. |
I think it'll be easy to implement by grabbing path and just separating by / and throwing away the last part.
The text was updated successfully, but these errors were encountered: