After taking picture, onActivityResult is not calling, so the image is not displaying in image view in phone. But this works well when connected to emulator..
hi, am quite new into this field of android application programming... so i am wondering if the image captured with the mobile camera is now stored into the computer specified file location? and can i access those images with openCV applications?
The code is awesome, thank you! But have a question: Anyone of you guys met a problem like me below;? When I create a picture it always has a 90° rotation. Anyone know why?
I have a problem, at the " intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); " it says: " Cannot resolve method 'putExtra(java.lang.String, Uri)' " why is that?
Best tutorial ❤️❤️❤️.... Can we check the quality of an image? I mean i want to store only high quality image otherwise show your image quality is bad please take another photo
Right now there is no direct way to classify an image as good or bad. However, you could use ML Kit By Google and train a custom model with good and bad quality images and use that model to classify the images that the user selects
camera permission is needed only when your app needs access to the camera hardware. Here we are getting the image from the inbuilt camera app, so we do not need to care for handling camera permission
Failed to find configured root that contains /storage/emulated/0/Android/data/com.example.rentandvroom/files/Pictures/photo2540936447755224941.jpg This is what I am getting at Uri imageUri = FileProvider.getUriForFile(TakePhotoActivity.this,"com.example.rentandvroom.fileprovider",imageFile);
App is crashed while clicking on button and this error shown java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.nrco.camera/files/Pictures/photo7181033341915067879.jpg
Image is not seen in imageview after taking pic. Working on emulator but not on phone Moreover your manifest has no permissions? Help me with it how to get image on screen . Everything is same as in ur code
ERROR : save: /storage/emulated/0/159960245407454m.jpg: open failed: EPERM (Operation not permitted) W/System.err: java.io.FileNotFoundException: /storage/emulated/0/159960245407454m.jpg: open failed: EPERM (Operation not permitted) i give him permission write read camera
@@mohammadqabbani4553 Add these line in your Activity and Fragment where are you use this Camera Operation. StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build());
Bhai thanks yar! Hafte se error par atka hua tha! Tune theek karva dia yar! Thnx bro! Jai Shree Ram
Absolutely terrific tutorial man. Thanks!!
Thank you so much this method helps me
Thank you! Very helpful!
I don't know how to thank you, You've saved my job. God bless you.. never stop
making video and help people like me
Awesome tutorial,thanks alot
This saved me today ❤❤
Good tutorial
After taking picture, onActivityResult is not calling, so the image is not displaying in image view in phone. But this works well when connected to emulator..
Great tutorial man, thanks!
You saved my life
Very nice 👌
Waiting for new App tutorial ☺️
Great explanation.
thanks bro, helpful tutorial
Did a great job! Thank you.
Thanks a lot
Keep it up bro👍
hi, am quite new into this field of android application programming... so i am wondering if the image captured with the mobile camera is now stored into the computer specified file location? and can i access those images with openCV applications?
what program you use to do all this and how to install to phone
Thank you very, very much
Thanks. I've got another idea by this video
Thank You, comrade!
Sir, why in the android studio emulator can open the camera but when I use my phone to open the app suddenly close...
same here
thanx very useful content
Thank you so much Sir!
The code is awesome, thank you! But have a question:
Anyone of you guys met a problem like me below;?
When I create a picture it always has a 90° rotation.
Anyone know why?
Hi can you help me again... when I take the photo and when I display the photo, it rotates to 90 degrees. Thanks you for help
You could use Matrix to rotate bitmap. Here's a psuedo example:
Matrix matrix = new Matrix();
matrix.postRotate(90);
Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmapOrg, width, height, true);
Bitmap rotatedBitmap = Bitmap.createBitmap(scaledBitmap, 0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), matrix, true);
Thanks sir !
I have a problem, at the " intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); " it says: " Cannot resolve method 'putExtra(java.lang.String, Uri)' " why is that?
very helpfull.
Please, make a video on " How to make share images from imageview" app in Android Studio 🙏🙏🙏
Best tutorial ❤️❤️❤️.... Can we check the quality of an image? I mean i want to store only high quality image otherwise show your image quality is bad please take another photo
Right now there is no direct way to classify an image as good or bad. However, you could use ML Kit By Google and train a custom model with good and bad quality images and use that model to classify the images that the user selects
how to save image my friend? I want close app and image is saved on phone
thnxxx bro
White hat Jr. Ads😂
Hello sir,
I have an doubt!
Question:-how can i check captured image quality ?
I need to show percentage in text view of image quality.
Thanks you somuch ❤️
could you show the full code on the net?plz
When I open camera it closed the app!! it dosn't work
1:48 have you set exported to true?
@@heyletscode thank you... i have solved it now... I forget s in file at the link /files/Pictures
how could you do that without giving camera permission
camera permission is needed only when your app needs access to the camera hardware. Here we are getting the image from the inbuilt camera app, so we do not need to care for handling camera permission
My phone does not have sd card, can i do the same when save to cache? Thanks
yes, this doesn’t require SD CARD Only
exelent
Failed to find configured root that contains /storage/emulated/0/Android/data/com.example.rentandvroom/files/Pictures/photo2540936447755224941.jpg
This is what I am getting at
Uri imageUri = FileProvider.getUriForFile(TakePhotoActivity.this,"com.example.rentandvroom.fileprovider",imageFile);
I don't know why but it worked
stackoverflow.com/questions/42516126/fileprovider-illegalargumentexception-failed-to-find-configured-root
@@AakashSharma-ug5pt its simple they optimized to / as root i.e, "Android/data/com.example.rentandvroom/files/Pictures/' = "/"
how to save image after that
Bro You didn't Give Permissions In Manifest
App is crashed while clicking on button and this error shown
java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.nrco.camera/files/Pictures/photo7181033341915067879.jpg
Same goes for me too
convert your file path to path="/"
Can you fix that? I have the same problem
@@nxnqzd I just converted my path to "/" and it worked.
Can u pls provide the source code..
Image is not seen in imageview after taking pic. Working on emulator but not on phone Moreover your manifest has no permissions? Help me with it how to get image on screen . Everything is same as in ur code
The Image Not saved on Gallery How i can saved it
ERROR : save: /storage/emulated/0/159960245407454m.jpg: open failed: EPERM (Operation not permitted)
W/System.err: java.io.FileNotFoundException: /storage/emulated/0/159960245407454m.jpg: open failed: EPERM (Operation not permitted)
i give him permission write read camera
@@mohammadqabbani4553 Add these line in your Activity and Fragment where are you use this Camera Operation.
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
Bhai teri height kitni h
5’11
Where the hell is declaration of "fileprovider" class?
How Android will know that "fileprovider" exists in the project?
Yes also I have this problem how to get fileprovider
I love you man! Saved my ass