help pls - error: cannot find symbol method postRotate(float,float,float) and postRotate red color
@TechCreatorsHub14 жыл бұрын
Import given below. import android.graphics.Matrix; And remove the import given below import android.opengl.Matrix;
@pratikbaid14 жыл бұрын
I am getting a error Failed to write or close file
@pratikbaid14 жыл бұрын
Solved it. Just change the target SDK to 28
@nextgen97514 жыл бұрын
Ok bro
@gabriellanglois63764 жыл бұрын
@@pratikbaid1 I have the same error, but that solution didn't work for me
@manoelgustavo13523 жыл бұрын
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
@IlayC2 жыл бұрын
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
@冰河-h7i4 жыл бұрын
Filed to write or close file, maybe something wrong in takePicture method
@Alex-ug6fh4 жыл бұрын
Probably, I have the same error
@pratikbaid14 жыл бұрын
Have you found a solution yet??
@ajaypanchal11064 жыл бұрын
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
@gunboundvegamoron4 жыл бұрын
If i want to use front camera?
@farmerportal59874 жыл бұрын
good tutorial but Preview shows stretchy and skewed while rotations , any suggestion
@ravirajpurohit35324 жыл бұрын
Facing the same issue, did you find any solution?
@andreasbasso47953 жыл бұрын
@@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 ...
@ravirajpurohit35323 жыл бұрын
@@andreasbasso4795 LOL, I took reference from some other video later.
@andreasbasso47953 жыл бұрын
@@ravirajpurohit3532 may i have the link plz ?
@SM-cr3ju2 жыл бұрын
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 ?
@gabriellanglois63764 жыл бұрын
Is there a way to change the code a little bit to store the pictures in the internal storage of the phone?
@nikoicardo94744 жыл бұрын
This is what I need as well.
@canererhadim37724 жыл бұрын
why did you use permissions without android.manifest
@purushottampawar58663 жыл бұрын
is it custom camera ?
@nextgen97513 жыл бұрын
Yes
@ryuhayabusa9432 жыл бұрын
Bro how to display latitude and longitude and link it to the Google Map?
@captainbrat27904 жыл бұрын
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)
@rmnvishal4 жыл бұрын
Thanks bro! You are a life saver :-)
@seeunkwon35405 жыл бұрын
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)
@nextgen97515 жыл бұрын
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
@seeunkwon35405 жыл бұрын
@@nextgen9751 thanks i think it was because of emulator API level as you said. it works find on my android device!
@jojox19042 жыл бұрын
Fails for me :(
@ravirajpurohit35324 жыл бұрын
It is not opening camera, just a blank view of textureView is there
@nextgen97514 жыл бұрын
Once check your code github.com/Raja-dev/Camera-X
@ravirajpurohit35324 жыл бұрын
@@nextgen9751 thanks, but app crashes with the error - "Access denied finding property "vendor.camera.aux.packagelist""
@leeladherkumawat72443 жыл бұрын
Bro please tell how to add limit this video into 1 minute
@ВикторЛогачёв-з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)
@datdo36994 жыл бұрын
can we use filter with this library? Thks
@nextgen97514 жыл бұрын
Yes
@minhucphan3173 жыл бұрын
source code please
@harchan62743 жыл бұрын
Great bro, really great. Is there a way we can implement image processing in it? Like adjusting iso, saturation?
@allwin_52525 жыл бұрын
Nice video. How could achieve the feature 'preview' after taking picture and before it saved?
@Game9Dz4 жыл бұрын
Don't Work :(
@arshdeepkumar25864 жыл бұрын
How to compress the picture
@andreasbasso47953 жыл бұрын
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.
@naveens7504 жыл бұрын
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
@jehrilahelicopter4 жыл бұрын
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
@nextgen97514 жыл бұрын
Bro, once check your full code github.com/Raja-dev/Camera-X
@jehrilahelicopter4 жыл бұрын
@@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
@rishavmishra13674 жыл бұрын
i need it for recording video also help me please
@nextgen97514 жыл бұрын
ok
@petretrusca24 жыл бұрын
where is the source code ? github ?
@nextgen97514 жыл бұрын
github.com/Raja-dev/Camera-X
@05jdl4 жыл бұрын
I can´t make app because this error "Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library"
@swapniljaiswal61894 жыл бұрын
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
@andreasbasso47953 жыл бұрын
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}"
@joshisankar2554 жыл бұрын
Bro pleae the image button is not visible but it is there can i know why
@nextgen97514 жыл бұрын
check the srcCompat in image button select "@android:drawable/ic_menu_camera" or other icon location you want to use.
@AshishSingh-dr4lv4 жыл бұрын
Thanks bro! You are a life save :-)
@godcrateopener4 жыл бұрын
hello bro good stuff. can you please provide it for recording video using a tap and hold button