How to create a camera application in Android Studio | How to use CameraX API | By Clever Section

  Рет қаралды 34,374

NextGEN

NextGEN

Күн бұрын

Пікірлер: 68
@ВикторЛогачёв-з9г
@ВикторЛогачёв-з9г 4 жыл бұрын
help pls - error: cannot find symbol method postRotate(float,float,float) and postRotate red color
@TechCreatorsHub1
@TechCreatorsHub1 4 жыл бұрын
Import given below. import android.graphics.Matrix; And remove the import given below import android.opengl.Matrix;
@pratikbaid1
@pratikbaid1 4 жыл бұрын
I am getting a error Failed to write or close file
@pratikbaid1
@pratikbaid1 4 жыл бұрын
Solved it. Just change the target SDK to 28
@nextgen9751
@nextgen9751 4 жыл бұрын
Ok bro
@gabriellanglois6376
@gabriellanglois6376 4 жыл бұрын
@@pratikbaid1 I have the same error, but that solution didn't work for me
@manoelgustavo1352
@manoelgustavo1352 3 жыл бұрын
i have only 1 error please help me error: cannot find symbol findViewById(R.id.imgCapture).setOnClickListener(new View.OnClickListener() { ^ symbol: variable imgCapture location: class id
@IlayC
@IlayC 2 жыл бұрын
It's the id of the image button you need to change it to imgCapture or change imgCapture to imageButton. check that you have the same button on 2:29
@冰河-h7i
@冰河-h7i 4 жыл бұрын
Filed to write or close file, maybe something wrong in takePicture method
@Alex-ug6fh
@Alex-ug6fh 4 жыл бұрын
Probably, I have the same error
@pratikbaid1
@pratikbaid1 4 жыл бұрын
Have you found a solution yet??
@ajaypanchal1106
@ajaypanchal1106 4 жыл бұрын
Bro whan I start this app msg occur permissions not grant and it closesed in setting no any permissions available for allowing to this app
@gunboundvegamoron
@gunboundvegamoron 4 жыл бұрын
If i want to use front camera?
@farmerportal5987
@farmerportal5987 4 жыл бұрын
good tutorial but Preview shows stretchy and skewed while rotations , any suggestion
@ravirajpurohit3532
@ravirajpurohit3532 4 жыл бұрын
Facing the same issue, did you find any solution?
@andreasbasso4795
@andreasbasso4795 3 жыл бұрын
@@ravirajpurohit3532 me too. And you did you find a solution haha ? I see it's because the cameraX library has issues in this version. but if we change the version of cameraX in the build.graddle, this tutorial dosn't work anymore ...
@ravirajpurohit3532
@ravirajpurohit3532 3 жыл бұрын
@@andreasbasso4795 LOL, I took reference from some other video later.
@andreasbasso4795
@andreasbasso4795 3 жыл бұрын
@@ravirajpurohit3532 may i have the link plz ?
@SM-cr3ju
@SM-cr3ju 2 жыл бұрын
hello sir, i already follow your code, but i got the problem at error: cannot find symbol CameraX.UnbindAll(); ^ symbol: method UnbindAll() location: variable CameraX of type Object can you help me with that ?
@gabriellanglois6376
@gabriellanglois6376 4 жыл бұрын
Is there a way to change the code a little bit to store the pictures in the internal storage of the phone?
@nikoicardo9474
@nikoicardo9474 4 жыл бұрын
This is what I need as well.
@canererhadim3772
@canererhadim3772 4 жыл бұрын
why did you use permissions without android.manifest
@purushottampawar5866
@purushottampawar5866 3 жыл бұрын
is it custom camera ?
@nextgen9751
@nextgen9751 3 жыл бұрын
Yes
@ryuhayabusa943
@ryuhayabusa943 2 жыл бұрын
Bro how to display latitude and longitude and link it to the Google Map?
@captainbrat2790
@captainbrat2790 4 жыл бұрын
i got an error -61: AAPT: error: inner element must either be a resource reference or empty. in ids.xml file @string/capture (@string/capture is red please tell me a fix)
@rmnvishal
@rmnvishal 4 жыл бұрын
Thanks bro! You are a life saver :-)
@seeunkwon3540
@seeunkwon3540 5 жыл бұрын
is it because i run it on emulator? I am getting an error says call to OpenGL ES API with no current context (logged once per thread)
@nextgen9751
@nextgen9751 5 жыл бұрын
Maybe because your emulator has a low API level. Camera x API needs minimum API level 21. Or, you can recheck your code from this link github.com/Raja-dev/Camera-X
@seeunkwon3540
@seeunkwon3540 5 жыл бұрын
@@nextgen9751 thanks i think it was because of emulator API level as you said. it works find on my android device!
@jojox1904
@jojox1904 2 жыл бұрын
Fails for me :(
@ravirajpurohit3532
@ravirajpurohit3532 4 жыл бұрын
It is not opening camera, just a blank view of textureView is there
@nextgen9751
@nextgen9751 4 жыл бұрын
Once check your code github.com/Raja-dev/Camera-X
@ravirajpurohit3532
@ravirajpurohit3532 4 жыл бұрын
@@nextgen9751 thanks, but app crashes with the error - "Access denied finding property "vendor.camera.aux.packagelist""
@leeladherkumawat7244
@leeladherkumawat7244 3 жыл бұрын
Bro please tell how to add limit this video into 1 minute
@ВикторЛогачёв-з9г
@ВикторЛогачёв-з9г 4 жыл бұрын
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [androidx.camera:camera-camera2:1.0.0-alpha02] C:\Users\USER\.gradle\caches\transforms-2\files-2.1\ec9f1cf77e638a84770b091f46849565\camera-camera2-1.0.0-alpha02\AndroidManifest.xml as the library might be using APIs not available in 19 Suggestion: use a compatible library with a minSdk of at most 19, or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="androidx.camera.camera2" to force usage (may lead to runtime failures)
@datdo3699
@datdo3699 4 жыл бұрын
can we use filter with this library? Thks
@nextgen9751
@nextgen9751 4 жыл бұрын
Yes
@minhucphan317
@minhucphan317 3 жыл бұрын
source code please
@harchan6274
@harchan6274 3 жыл бұрын
Great bro, really great. Is there a way we can implement image processing in it? Like adjusting iso, saturation?
@allwin_5252
@allwin_5252 5 жыл бұрын
Nice video. How could achieve the feature 'preview' after taking picture and before it saved?
@Game9Dz
@Game9Dz 4 жыл бұрын
Don't Work :(
@arshdeepkumar2586
@arshdeepkumar2586 4 жыл бұрын
How to compress the picture
@andreasbasso4795
@andreasbasso4795 3 жыл бұрын
you can simply change the resolution of the image : android.util.Size res = new android.util.Size(600, 1200); ImageCaptureConfig imageCaptureConfig = new ImageCaptureConfig.Builder().setCaptureMode(ImageCapture.CaptureMode.MIN_LATENCY) .setTargetRotation(getWindowManager().getDefaultDisplay().getRotation()).setTargetResolution(res).build(); ( the important thing for you it's the setTargetResolution() , you can change the resolution with the first line 600 is the width and 1200 the height.
@naveens750
@naveens750 4 жыл бұрын
Hi it's good very nice explanation but I need help how can I block digital camera and mobile camera when entering to college campus without no root or how to access mobile phone camera and digital camera without user permission
@jehrilahelicopter
@jehrilahelicopter 4 жыл бұрын
BRO HELP! there is something wrong with my phone, with that code I can see the view finder but the shutter button doesn't work
@nextgen9751
@nextgen9751 4 жыл бұрын
Bro, once check your full code github.com/Raja-dev/Camera-X
@jehrilahelicopter
@jehrilahelicopter 4 жыл бұрын
@@nextgen9751 thanks it helped, but 1 last thing will it vary from phone to phone coz its working on my dad's phone my not mine
@rishavmishra1367
@rishavmishra1367 4 жыл бұрын
i need it for recording video also help me please
@nextgen9751
@nextgen9751 4 жыл бұрын
ok
@petretrusca2
@petretrusca2 4 жыл бұрын
where is the source code ? github ?
@nextgen9751
@nextgen9751 4 жыл бұрын
github.com/Raja-dev/Camera-X
@05jdl
@05jdl 4 жыл бұрын
I can´t make app because this error "Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library"
@swapniljaiswal6189
@swapniljaiswal6189 4 жыл бұрын
I have implemented the code step by step but for some reason my preview screen is always black but when I capture the image, the image get's captured. I am stuck for quite some time. Please help
@andreasbasso4795
@andreasbasso4795 3 жыл бұрын
did you have the exactly same as here in you build.graddle ? : def cameraxVersion = "1.0.0-alpha02" implementation "androidx.camera:camera-core:${cameraxVersion}" implementation "androidx.camera:camera-camera2:${cameraxVersion}"
@joshisankar255
@joshisankar255 4 жыл бұрын
Bro pleae the image button is not visible but it is there can i know why
@nextgen9751
@nextgen9751 4 жыл бұрын
check the srcCompat in image button select "@android:drawable/ic_menu_camera" or other icon location you want to use.
@AshishSingh-dr4lv
@AshishSingh-dr4lv 4 жыл бұрын
Thanks bro! You are a life save :-)
@godcrateopener
@godcrateopener 4 жыл бұрын
hello bro good stuff. can you please provide it for recording video using a tap and hold button
@nextgen9751
@nextgen9751 4 жыл бұрын
Ok, bro. Thank you
@AbdulHAdi-lu2oh
@AbdulHAdi-lu2oh 2 жыл бұрын
Hell
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 340 М.
CameraX setup and permissions
9:12
Android Developers
Рет қаралды 13 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Martin Shkreli Creates A Quantitative Algorithm For Investing
10:31
Shkreli Planet
Рет қаралды 1,5 М.
Best of CES 2025
14:50
The Verge
Рет қаралды 614 М.
Camera X in Java | Image Capture, Video Capture, Image Analysis
15:10
Android Studio Tutorial - Build a GPS App
1:23:15
freeCodeCamp.org
Рет қаралды 254 М.