In this video, I will show you how you can take photos from an android device's inbuilt camera application into your application without losing the quality of the image Follow me on Instagram: / heyletscode
Пікірлер: 74
@AakashSharma-ug5pt4 жыл бұрын
Bhai thanks yar! Hafte se error par atka hua tha! Tune theek karva dia yar! Thnx bro! Jai Shree Ram
@saurabhgoel81918 ай бұрын
Absolutely terrific tutorial man. Thanks!!
@kennyblaze63032 жыл бұрын
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?
@adityabansal11683 жыл бұрын
Did a great job! Thank you.
@jithusunny67354 жыл бұрын
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..
@olhaonaipe3 жыл бұрын
Great tutorial man, thanks!
@ChandanKumar-vp1jw3 ай бұрын
Thank you so much this method helps me
@DaxyCZ Жыл бұрын
Thank you! Very helpful!
@jerryyap15163 жыл бұрын
what program you use to do all this and how to install to phone
@jessebett75523 жыл бұрын
Awesome tutorial,thanks alot
@funzone94624 жыл бұрын
Very nice 👌 Waiting for new App tutorial ☺️
@leventestancz45223 жыл бұрын
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?
@shuaibalam70854 жыл бұрын
Thanks a lot Keep it up bro👍
@BencENagy-qh8lv7 ай бұрын
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?
@user-qi7th4vc5s2 жыл бұрын
Great explanation.
@oussamaobs3 жыл бұрын
thanks bro, helpful tutorial
@ashrafakib37502 жыл бұрын
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
@KY_74103 жыл бұрын
Thank you so much Sir!
@venkatesh43073 жыл бұрын
Thanks. I've got another idea by this video
@woonie31343 жыл бұрын
how to save image my friend? I want close app and image is saved on phone
@FaxeelAhmed4 жыл бұрын
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
@heyletscode4 жыл бұрын
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
@nightmarexcvm3 жыл бұрын
thanx very useful content
@user-yv4fk2wc2x3 жыл бұрын
could you show the full code on the net?plz
@obrymec2 ай бұрын
Good tutorial
@shatanikmahanty9 ай бұрын
This saved me today ❤❤
@hieuvan3474 жыл бұрын
Thanks you somuch ❤️
@soumojyotiganguly86183 жыл бұрын
very helpfull.
@nicolewis88113 жыл бұрын
Thanks sir !
@dangr302 Жыл бұрын
Thank you very, very much
@alantony6224 жыл бұрын
Can u pls provide the source code..
@toniuswar6148 Жыл бұрын
Thank You, comrade!
@sialeeMK4 жыл бұрын
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
@heyletscode4 жыл бұрын
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);
@KY_74103 жыл бұрын
Sir, why in the android studio emulator can open the camera but when I use my phone to open the app suddenly close...
@jayeshkarale91182 жыл бұрын
same here
@chiranjeevshubham690 Жыл бұрын
Please, make a video on " How to make share images from imageview" app in Android Studio 🙏🙏🙏
@abhishekjangam79242 жыл бұрын
how to save image after that
@hongnhungtuong89174 жыл бұрын
My phone does not have sd card, can i do the same when save to cache? Thanks
@heyletscode4 жыл бұрын
yes, this doesn’t require SD CARD Only
@abhishekjangam79242 жыл бұрын
thnxxx bro
@akshayhadiya7094 Жыл бұрын
Hello sir, I have an doubt! Question:-how can i check captured image quality ?
@akshayhadiya7094 Жыл бұрын
I need to show percentage in text view of image quality.
@jannaikodeyashwanthkumar81213 жыл бұрын
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
@ujjwaldeep51753 жыл бұрын
White hat Jr. Ads😂
@reginoldkolenchery47504 жыл бұрын
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);
@AakashSharma-ug5pt4 жыл бұрын
I don't know why but it worked stackoverflow.com/questions/42516126/fileprovider-illegalargumentexception-failed-to-find-configured-root
@vamsee78753 жыл бұрын
@@AakashSharma-ug5pt its simple they optimized to / as root i.e, "Android/data/com.example.rentandvroom/files/Pictures/' = "/"
@nikhilnandhagopan55763 жыл бұрын
how could you do that without giving camera permission
@heyletscode3 жыл бұрын
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
@sialeeMK4 жыл бұрын
When I open camera it closed the app!! it dosn't work
@heyletscode4 жыл бұрын
1:48 have you set exported to true?
@sialeeMK4 жыл бұрын
@@heyletscode thank you... i have solved it now... I forget s in file at the link /files/Pictures
@suramericaunida73193 жыл бұрын
exelent
@mfaizhussain710 ай бұрын
Bro You didn't Give Permissions In Manifest
@ankurtomar39944 жыл бұрын
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
@mansoornisar66664 жыл бұрын
Same goes for me too
@mansoornisar66664 жыл бұрын
convert your file path to path="/"
@nxnqzd3 жыл бұрын
Can you fix that? I have the same problem
@mansoornisar66663 жыл бұрын
@@nxnqzd I just converted my path to "/" and it worked.
@mohammadqabbani45533 жыл бұрын
The Image Not saved on Gallery How i can saved it
@mohammadqabbani45533 жыл бұрын
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
@lifeadventure86833 жыл бұрын
@@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());
@officework15183 жыл бұрын
Where the hell is declaration of "fileprovider" class? How Android will know that "fileprovider" exists in the project?
@adnoabdullahi43983 жыл бұрын
Yes also I have this problem how to get fileprovider