Atwa / filepicker

Android file and image picker library without permissions.
Apache License 2.0
100 stars 7 forks source link

[Feature request] Get photo from camera #3

Closed cempo closed 2 years ago

cempo commented 2 years ago

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 commented 2 years ago

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

Androbito commented 2 years ago

yes we need it, it's useful

Atwa commented 2 years ago

@Androbito @cempo will be available on Sunday Inshallah

Atwa commented 2 years ago

@cempo @Androbito Feature is available now with version 1.4.0

cempo commented 2 years ago

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 commented 2 years ago

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

cempo commented 2 years ago

Already working. Thanks

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