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

why you use uri rather than File.getAbsolutePath() ?? #60

Closed
08carmelo opened this issue May 26, 2017 · 2 comments
Closed

why you use uri rather than File.getAbsolutePath() ?? #60

08carmelo opened this issue May 26, 2017 · 2 comments

Comments

@08carmelo
Copy link

public File compressToFile(File file) {
return ImageUtil.compressImage(context, Uri.fromFile(file), maxWidth, maxHeight,
compressFormat, bitmapConfig, quality, destinationDirectoryPath,
fileNamePrefix, fileName);
}

@sp-1234
Copy link

sp-1234 commented Jun 9, 2017

Uri can reference a File which would be inaccessible "directly".
Basically, learn Android before complaining.

@08carmelo
Copy link
Author

08carmelo commented Jun 12, 2017 via email

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

No branches or pull requests

3 participants