#Java #AndroidStudio #CameraX
In this video I will implement Google's new camera api called as Camera X. The camera X implemented in our app will contain use cases such as Image Preview, Image capture, Image analysis and video capture use case.
▬ Gradle Dependencies ▬▬▬▬▬▬▬▬▬▬
def cameraxVersion = "1.1.0-alpha05"
implementation "androidx.camera:camera-core:${cameraxVersion}"
implementation "androidx.camera:camera-camera2:${cameraxVersion}"
implementation "androidx.camera:camera-lifecycle:${cameraxVersion}"
// CameraX View class
implementation 'androidx.camera:camera-view:1.0.0-alpha25'
▬ Common Camera X Error ▬▬▬▬▬▬▬▬▬▬
Error: an error occurred by CameraX.bindToLifecycle()
java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0. May be attempting to bind too many use cases.
Solution: You are binding more UseCases than your device's camera supports. Not all devices can support image capture and video capture at the same time.
▬ Related ▬▬▬▬▬▬▬▬▬▬
🎥 Previous Video: MVC | Model View Controller | Explained Step-by-step Code With Diagram In Android Studio
→ • MVC | Model View Controller | Explain...
🎥 All videos: Android Java Tutorials
→ • Android Java Tutorials
▬ Contents ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
0:40 - Gradle dependencies
2:25 - Initialize Camera X
3:42 - Preview Use Case
4:20 - Image Capture Use Case
8:00 - Vide Capture Use Case
12:00 - Image Analysis Use Case
14:55 - Call to action
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Buy Me A Coffee: https://www.buymeacoffee.com/codingreel
▬ Have a video request ? ▬▬▬▬▬▬▬▬▬▬
Any thoughts or suggestions are greatly appreciated. Also, you can request a video upon automation.
Leave them in the comments below.
▬ More Videos On Android ?▬▬▬▬▬▬▬▬▬▬
Make sure to hit like and subscribe button to learn more
SUBSCRIBE for more tutorials on android application development and then automating the apps for CI/CD
https://bit.ly/2XmkEig
▬ Thanks ▬▬▬▬▬▬▬▬▬▬
Music: https://www.bensound.com
• Camera X in Java | Image Capture, Vid...