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

[Feature request] Get photo from camera #3

Closed
cempo opened this issue Oct 9, 2022 · 7 comments
Closed

[Feature request] Get photo from camera #3

cempo opened this issue Oct 9, 2022 · 7 comments

Comments

@cempo
Copy link

cempo commented Oct 9, 2022

Would be great to have ability to take photo from camera using this library

val cameraIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE).apply {
addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
putExtra(MediaStore.EXTRA_OUTPUT, outputUri)
}

And interface like:
fun pickImageFromCamera(outputUri: Uri, onImagePicked: (Pair<Bitmap?, File?>?) -> Unit)

@Atwa
Copy link
Owner

Atwa commented Oct 10, 2022

Thanks for sharing your valuable thoughts I will implement it ASA I'm free.

@Androbito
Copy link

yes we need it, it's useful

@Atwa
Copy link
Owner

Atwa commented Oct 28, 2022

@Androbito @cempo will be available on Sunday Inshallah

@Atwa
Copy link
Owner

Atwa commented Oct 30, 2022

@cempo @Androbito Feature is available now with version 1.4.0

@Atwa Atwa closed this as completed Oct 30, 2022
@cempo
Copy link
Author

cempo commented Oct 30, 2022

Thank you for the update.

I'm getting gradle error:
ResourceException: Could not get resource 'https://jcenter.bintray.com/com/github/Atwa/Android-FilePicker/1.0.4/Android-FilePicker-1.0.4.pom'.

@Atwa
Copy link
Owner

Atwa commented Oct 30, 2022

@cempo try with com.github.atwa:filepicker:1.0.4 instead of Android-FilePicker

@cempo
Copy link
Author

cempo commented Oct 31, 2022

Already working. Thanks

It would be great to have file with name which include extension like ".jpg" or ".jpeg". What do you think?

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