parag2385 / picker Goto Github PK
View Code? Open in Web Editor NEWPicker - A CameraX based WhatsApp Style Image-Video Picker
Picker - A CameraX based WhatsApp Style Image-Video Picker
Device: meizu 15
logcat:
2020-08-03 22:46:42.337 24580-24580/com.appexecutors.pickersample E/Picker: Use case binding failed
java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0. May be attempting to bind too many use cases. Existing surfaces: [] New configs: [androidx.camera.core.impl.VideoCaptureConfig@4fba973, androidx.camera.core.impl.ImageCaptureConfig@fa82aad, androidx.camera.core.impl.PreviewConfig@f9076d7]
at androidx.camera.lifecycle.LifecycleCameraRepository.bindToLifecycleCamera(LifecycleCameraRepository.java:266)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:424)
at androidx.camera.lifecycle.ProcessCameraProvider.bindToLifecycle(ProcessCameraProvider.java:275)
at com.appexecutors.picker.Picker.bindCameraUseCases(Picker.kt:276)
at com.appexecutors.picker.Picker.access$bindCameraUseCases(Picker.kt:74)
at com.appexecutors.picker.Picker$startCamera$1.run(Picker.kt:134)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6394)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1000)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:890)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
if i replace
cameraProvider.bindToLifecycle(this, cameraSelector, preview, imageCapture, videoCapture)
to
cameraProvider.bindToLifecycle(this, cameraSelector, preview)
then preview is started, but i cant take picture
onActivityResult is deprecated. How to use this lib with registerForActivityResult and how to launch it?
Can I Use this library for Jetpack Compose
Not able to get activityresult in target SDK 30
I have a Samsung S22 and when I capture an image, I don't get a return success or any callback.
Hello,
Great work.
One thing really not looks good that when we start Camera there is a little flicker of previous activity is shown. I think it's just happening in the sample project but it's also the shows in my project.
Android Version: Pie(28)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.