Take Photo From Camera Without Losing The Quality Of The Image | Android Tutorial

  Рет қаралды 15,765

heyletscode

heyletscode

4 жыл бұрын

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-ug5pt
@AakashSharma-ug5pt 4 жыл бұрын
Bhai thanks yar! Hafte se error par atka hua tha! Tune theek karva dia yar! Thnx bro! Jai Shree Ram
@saurabhgoel8191
@saurabhgoel8191 8 ай бұрын
Absolutely terrific tutorial man. Thanks!!
@kennyblaze6303
@kennyblaze6303 2 жыл бұрын
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?
@adityabansal1168
@adityabansal1168 3 жыл бұрын
Did a great job! Thank you.
@jithusunny6735
@jithusunny6735 4 жыл бұрын
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..
@olhaonaipe
@olhaonaipe 3 жыл бұрын
Great tutorial man, thanks!
@ChandanKumar-vp1jw
@ChandanKumar-vp1jw 3 ай бұрын
Thank you so much this method helps me
@DaxyCZ
@DaxyCZ Жыл бұрын
Thank you! Very helpful!
@jerryyap1516
@jerryyap1516 3 жыл бұрын
what program you use to do all this and how to install to phone
@jessebett7552
@jessebett7552 3 жыл бұрын
Awesome tutorial,thanks alot
@funzone9462
@funzone9462 4 жыл бұрын
Very nice 👌 Waiting for new App tutorial ☺️
@leventestancz4522
@leventestancz4522 3 жыл бұрын
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?
@shuaibalam7085
@shuaibalam7085 4 жыл бұрын
Thanks a lot Keep it up bro👍
@BencENagy-qh8lv
@BencENagy-qh8lv 7 ай бұрын
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-qi7th4vc5s
@user-qi7th4vc5s 2 жыл бұрын
Great explanation.
@oussamaobs
@oussamaobs 3 жыл бұрын
thanks bro, helpful tutorial
@ashrafakib3750
@ashrafakib3750 2 жыл бұрын
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_7410
@KY_7410 3 жыл бұрын
Thank you so much Sir!
@venkatesh4307
@venkatesh4307 3 жыл бұрын
Thanks. I've got another idea by this video
@woonie3134
@woonie3134 3 жыл бұрын
how to save image my friend? I want close app and image is saved on phone
@FaxeelAhmed
@FaxeelAhmed 4 жыл бұрын
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
@heyletscode
@heyletscode 4 жыл бұрын
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
@nightmarexcvm
@nightmarexcvm 3 жыл бұрын
thanx very useful content
@user-yv4fk2wc2x
@user-yv4fk2wc2x 3 жыл бұрын
could you show the full code on the net?plz
@obrymec
@obrymec 2 ай бұрын
Good tutorial
@shatanikmahanty
@shatanikmahanty 9 ай бұрын
This saved me today ❤❤
@hieuvan347
@hieuvan347 4 жыл бұрын
Thanks you somuch ❤️
@soumojyotiganguly8618
@soumojyotiganguly8618 3 жыл бұрын
very helpfull.
@nicolewis8811
@nicolewis8811 3 жыл бұрын
Thanks sir !
@dangr302
@dangr302 Жыл бұрын
Thank you very, very much
@alantony622
@alantony622 4 жыл бұрын
Can u pls provide the source code..
@toniuswar6148
@toniuswar6148 Жыл бұрын
Thank You, comrade!
@sialeeMK
@sialeeMK 4 жыл бұрын
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
@heyletscode
@heyletscode 4 жыл бұрын
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_7410
@KY_7410 3 жыл бұрын
Sir, why in the android studio emulator can open the camera but when I use my phone to open the app suddenly close...
@jayeshkarale9118
@jayeshkarale9118 2 жыл бұрын
same here
@chiranjeevshubham690
@chiranjeevshubham690 Жыл бұрын
Please, make a video on " How to make share images from imageview" app in Android Studio 🙏🙏🙏
@abhishekjangam7924
@abhishekjangam7924 2 жыл бұрын
how to save image after that
@hongnhungtuong8917
@hongnhungtuong8917 4 жыл бұрын
My phone does not have sd card, can i do the same when save to cache? Thanks
@heyletscode
@heyletscode 4 жыл бұрын
yes, this doesn’t require SD CARD Only
@abhishekjangam7924
@abhishekjangam7924 2 жыл бұрын
thnxxx bro
@akshayhadiya7094
@akshayhadiya7094 Жыл бұрын
Hello sir, I have an doubt! Question:-how can i check captured image quality ?
@akshayhadiya7094
@akshayhadiya7094 Жыл бұрын
I need to show percentage in text view of image quality.
@jannaikodeyashwanthkumar8121
@jannaikodeyashwanthkumar8121 3 жыл бұрын
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
@ujjwaldeep5175
@ujjwaldeep5175 3 жыл бұрын
White hat Jr. Ads😂
@reginoldkolenchery4750
@reginoldkolenchery4750 4 жыл бұрын
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-ug5pt
@AakashSharma-ug5pt 4 жыл бұрын
I don't know why but it worked stackoverflow.com/questions/42516126/fileprovider-illegalargumentexception-failed-to-find-configured-root
@vamsee7875
@vamsee7875 3 жыл бұрын
@@AakashSharma-ug5pt its simple they optimized to / as root i.e, "Android/data/com.example.rentandvroom/files/Pictures/' = "/"
@nikhilnandhagopan5576
@nikhilnandhagopan5576 3 жыл бұрын
how could you do that without giving camera permission
@heyletscode
@heyletscode 3 жыл бұрын
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
@sialeeMK
@sialeeMK 4 жыл бұрын
When I open camera it closed the app!! it dosn't work
@heyletscode
@heyletscode 4 жыл бұрын
1:48 have you set exported to true?
@sialeeMK
@sialeeMK 4 жыл бұрын
@@heyletscode thank you... i have solved it now... I forget s in file at the link /files/Pictures
@suramericaunida7319
@suramericaunida7319 3 жыл бұрын
exelent
@mfaizhussain7
@mfaizhussain7 10 ай бұрын
Bro You didn't Give Permissions In Manifest
@ankurtomar3994
@ankurtomar3994 4 жыл бұрын
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
@mansoornisar6666
@mansoornisar6666 4 жыл бұрын
Same goes for me too
@mansoornisar6666
@mansoornisar6666 4 жыл бұрын
convert your file path to path="/"
@nxnqzd
@nxnqzd 3 жыл бұрын
Can you fix that? I have the same problem
@mansoornisar6666
@mansoornisar6666 3 жыл бұрын
@@nxnqzd I just converted my path to "/" and it worked.
@mohammadqabbani4553
@mohammadqabbani4553 3 жыл бұрын
The Image Not saved on Gallery How i can saved it
@mohammadqabbani4553
@mohammadqabbani4553 3 жыл бұрын
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
@lifeadventure8683
@lifeadventure8683 3 жыл бұрын
@@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());
@officework1518
@officework1518 3 жыл бұрын
Where the hell is declaration of "fileprovider" class? How Android will know that "fileprovider" exists in the project?
@adnoabdullahi4398
@adnoabdullahi4398 3 жыл бұрын
Yes also I have this problem how to get fileprovider
@arvindjha4578
@arvindjha4578 3 жыл бұрын
Bhai teri height kitni h
@heyletscode
@heyletscode 3 жыл бұрын
5’11
@yashagarwal2483
@yashagarwal2483 2 жыл бұрын
I love you man! Saved my ass
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 326 М.
How To Pick Multiple Images From Gallery | Android
6:15
heyletscode
Рет қаралды 23 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 25 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 72 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
startActivityForResult is Deprecated, look at the alternative way.
8:02
How To Create An Android App Backend With Node JS
32:27
heyletscode
Рет қаралды 125 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 132 М.
Why UK 🇬🇧 is going Bankrupt? : Detailed Economic Case Study
20:37
How To Record Video In Android Using In-Built Camera App
3:35
heyletscode
Рет қаралды 11 М.
How to Build a Camera App With CameraX - Taking Photos
29:35
Philipp Lackner
Рет қаралды 37 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 25 МЛН