Skip to content
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

Uri.parse(filePath).getPath -> filePath #60

Closed
wants to merge 1 commit into from
Closed

Uri.parse(filePath).getPath -> filePath #60

wants to merge 1 commit into from

Conversation

helloyako
Copy link

I have problem
filePath is "/storage/external_SD/#/#abc/zyx.jpg"
Uri.parse("/storage/external_SD/#/#abc/zyx.jpg").getPath return only "/storage/external_SD".
So FileNoeFoundException occured
Your code is File file = new File(Uri.parse(filePath).getPath)
I think variable filePath is already FILEPATH.
I thnkis Uri.parse.. is unnecessary code
please check this code
thank you

@coomar2841
Copy link
Owner

Will need to check this once. Will try to do this weekend. Thanks.

@coomar2841
Copy link
Owner

It's probably due to '#' and parse is encoding it and omitting it. Will look at it.

@helloyako helloyako closed this Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants