Android tutorial (2018) - 76 - Camera API - Saving High Quality Photo into a FIle

  Рет қаралды 40,493

PRABEESH R K

PRABEESH R K

Күн бұрын

Пікірлер: 72
@Love4Hardstyle
@Love4Hardstyle 3 жыл бұрын
You sir are a legend. I checked so many video's and stackoverflows, but there is almost no-one who is explaining why they do something and I find it really difficult to understand the documentation often. Now with copying your code and listening to what you said I was able to understand what was happening under the hood! Happy customer and happy employer now which == happy employee =)
@selimtanrverdi9639
@selimtanrverdi9639 2 жыл бұрын
PRABEESH R K, you are the best tutor in youtube!
@carrique10472
@carrique10472 3 жыл бұрын
This is actually the only video that helped me after 4 days of trying to make this work. Thanks.
@MyBestDayy
@MyBestDayy 4 жыл бұрын
Thankyou the applications works, but my image is not getting saved in the folder, Is it supposed to be like that. And can you refer me a video or link from which I can email this Picture as an attachment in the same app.
@timothychau7343
@timothychau7343 4 жыл бұрын
Where did you get the name and authorities from at 4:12?
@sialeeMK
@sialeeMK 4 жыл бұрын
4:10 in my Provider is not working in show in red color!
@manojkumarjayanthi
@manojkumarjayanthi 4 жыл бұрын
Same problem
@xiuyuanwang865
@xiuyuanwang865 4 жыл бұрын
change name to "androidx.core.content.FileProvider" and it works
@srinikethsowmithri9633
@srinikethsowmithri9633 4 жыл бұрын
sir is there any way to build a camera app that after captures shows the location of the image that is captured??
@mustafashaikh9075
@mustafashaikh9075 6 жыл бұрын
can we take multiple photos and make slide to view all in display activity...???
@markkhor4247
@markkhor4247 6 жыл бұрын
Hi, I get rotated image after following the tutorial. Any idea how can we get it sorted out?
@josteveadekanbi9636
@josteveadekanbi9636 5 жыл бұрын
Same here
@olukayodepaul7070
@olukayodepaul7070 6 жыл бұрын
Hello is it possible to upload this image using retrofit to the server?
@lidabraham5482
@lidabraham5482 5 жыл бұрын
yes
@ashikks8903
@ashikks8903 5 жыл бұрын
Can I change the jpeg size by changing the image quality?
@provaspro1788
@provaspro1788 6 жыл бұрын
Hight quality in Camera? What about focus and white balance and all new camera functions?
@manjunathprogrammer8252
@manjunathprogrammer8252 4 жыл бұрын
Can you tell me, how to auto capture images
@siddheshwarsarang2663
@siddheshwarsarang2663 3 жыл бұрын
how can we save the captured image in next activity using listview
@quidpanic7095
@quidpanic7095 5 жыл бұрын
I tried to run this on my phone huawei mate 2 pro ( no external storage) the photo is not being displayed. How can i fix this?
@quidpanic7095
@quidpanic7095 5 жыл бұрын
I checked files under android - data -package-files -Pictures the picture is there but its not being loaded in the imageView. I tried this on the emulator instead of on my real phone on the emulator it works on real phone the photo is not being displayed in the imageView
@quidpanic7095
@quidpanic7095 5 жыл бұрын
get this error: java.lang.RuntimeException: Canvas: trying to draw too large(159694848bytes) bitmap.
@Love4Hardstyle
@Love4Hardstyle 3 жыл бұрын
@@quidpanic7095 I think you need to add multiDexEnabled true & vectorDrawables.useSupportLibrary = true in your build.gradle
@aparnarajendran2136
@aparnarajendran2136 5 жыл бұрын
sir, can you please tell me, Is there any way to display image in another page without creating that display image button.
@adityarterse
@adityarterse 5 жыл бұрын
@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if(requestCode == 1 && resultCode == RESULT_OK) { // Bitmap bitmap = BitmapFactory.decodeFile(getIntent().getStringExtra("currentImagePath")); Bitmap bitmap = BitmapFactory.decodeFile(currentImagePath); imageView.setImageBitmap(bitmap); }
@NeoMed_die_or_do
@NeoMed_die_or_do 5 жыл бұрын
@@adityarterse so, if I use this multiple times in an app, will it give memory error
@NeoMed_die_or_do
@NeoMed_die_or_do 5 жыл бұрын
@@adityarterse I need to save the image and open in some other activity, which is not immediately follows the camera intent activity
@StoryOfRitika
@StoryOfRitika 5 жыл бұрын
@@adityarterse how to save this image into database using retrofit
@NeoMed_die_or_do
@NeoMed_die_or_do 5 жыл бұрын
@@StoryOfRitika thankyou, I saved into internal memory and retrieving from it, and uploaded a copy to firebasestorage
@diegovillegas9030
@diegovillegas9030 4 жыл бұрын
Hello dear PRABEESH R K thanks for the amaizing video, it works perfectly for me, I can take pictures. But I have a cuestion, when camera is openend automaticlly a temporary file is created even if the app does not take the photo the temporary file persist created, how can I avoid this or how can I know a picture was captured succesfully.. Thanks a lot.
@yutaitadori7318
@yutaitadori7318 3 жыл бұрын
I have one issue the image file which is supposed to be created before the camera starts is not created leading my app to crash how to fix this?
@aezazvahora7419
@aezazvahora7419 6 жыл бұрын
i need to how to tracking app code so please provide...sir
@Not-You-Tuber
@Not-You-Tuber 6 жыл бұрын
Sir I think, I need a small class about android provider.. Actually I don't get it perfectly what it does..
@daryllowey2043
@daryllowey2043 5 жыл бұрын
I am sending the camera request from a page that is not the 'main_activity'. The image is saving fine to the files/Pictures directory, but on return, it is going back to the main_activity and not displaying in the imageview
@manojkumarjayanthi
@manojkumarjayanthi 4 жыл бұрын
hi I am getting error here android:name="android.support.v4.content.FileProvider" android:authorities="com.example.android.fileprovider" content.FileProvider getting error here in android studio version 3.6.1
@mitchfeaver3107
@mitchfeaver3107 4 жыл бұрын
android:name="androidx.core.content.FileProvider"
@RohitKumar-jp6wx
@RohitKumar-jp6wx 4 жыл бұрын
@@mitchfeaver3107 Thanks !!
@sumansaexhibitions1116
@sumansaexhibitions1116 4 жыл бұрын
is it working fine to you,bcz its giving error to me @Manok Kumar Jayanthi
@arundhaydnjeez9933
@arundhaydnjeez9933 5 жыл бұрын
i am developing a safety App android project with 100+ buttons to take pictures for remedial actions.please give me some more ideas to take and save the images by using array..thanks
@sagarbsable
@sagarbsable 6 жыл бұрын
great video thanks, but can you make video on select image from gallery as well as capture through camera and send it to server by converting it to string(Base64) or if you have better decoding methods please??
@sagarbsable
@sagarbsable 6 жыл бұрын
Sir after getting image can we give edit option to crop image?
@MT4d616e
@MT4d616e 6 жыл бұрын
Sir plz tell me that how can I use the emulator because it is not working and x86 is also installed but still there is the problem and when ever I run the app 3 errors prompt up 1)process finished with error code 1 2)x86currently requires hardware acceleration 3)quick boot/snapshots not supported on this machine. A CPU with EPT+UG features is currently needed SIR PLZ HELP I HAVE SEARCHED THE INTERNET FOR SOOOO LONG BUT STILL I M FACING THE SAME PROBLEM
@nikhiln9899
@nikhiln9899 4 жыл бұрын
Hi thank you for your previous vedios i learnrt a lot from this vedios and i have an error in this capturing high quality photo in androudmanifest.Xml content.fileprovider error what is the solution?????
@hldev9437
@hldev9437 4 жыл бұрын
i need the code source please
@shaktiranjan7345
@shaktiranjan7345 6 жыл бұрын
Sir can we have a video on OCR please...
@papuholo9924
@papuholo9924 3 жыл бұрын
Here the app never use the provider.....
@ssdd9911
@ssdd9911 4 жыл бұрын
4:13 but my content.FileProvider is red
@pankajsharma2133
@pankajsharma2133 5 жыл бұрын
Provider tag is not getting closed
@adrianobelle1253
@adrianobelle1253 3 жыл бұрын
Thx men, you helped me a lot
@rahularora1079
@rahularora1079 5 жыл бұрын
Sir.. Please share the code to capture image nd upload to database.. Please reply ASAP.. Its urgent
@harshadamhatre4331
@harshadamhatre4331 3 жыл бұрын
Not working if no memory card
@dharmendra4736
@dharmendra4736 5 жыл бұрын
Sir Mai camera ke API Ko mobile phone ke main screen lock ke saath action karana chahta hu is baarey me kuch bataye sir please
@pravesh7724
@pravesh7724 6 жыл бұрын
it is not working in redmi note4 ,Sir If you solution please tell me, First time not getting image 2nd time it works,
@pravesh7724
@pravesh7724 6 жыл бұрын
i as understanding may be image rotate than destroy our activity
@shareofficial6947
@shareofficial6947 3 жыл бұрын
camera not show help
@locosocio
@locosocio 4 жыл бұрын
excellent, thank you for this good video, it works
@mikaelkolehmainen9098
@mikaelkolehmainen9098 5 жыл бұрын
Great Video!
@hayad2088
@hayad2088 3 жыл бұрын
Thanks honey, but it doesn't save image in my phone
@mikaelkolehmainen9098
@mikaelkolehmainen9098 5 жыл бұрын
Yes!! It worked
@rockerman7141
@rockerman7141 3 жыл бұрын
not woking for me tho
@tonmoykhan7153
@tonmoykhan7153 4 жыл бұрын
ThankYou So much Brother
@raphaelndwiga
@raphaelndwiga 4 жыл бұрын
Nice. I like it
@arpitkumarjain1324
@arpitkumarjain1324 6 жыл бұрын
why you use this sir? When i add this in manifest file and I run this app in nougat version of mobile phone app force closes and said " android.database.sqlite.SQLiteException: not an error (code 0): Could not open the database in read/write mode." so please help what to do when i ave image in database. Please reply me as early as possible sir
@PRABEESHRK
@PRABEESHRK 6 жыл бұрын
I use maxsdkversion= 18 because in this example i save the image in private storage spece of the app. For android version 4. 3 and lower accessing the private storage space need storage permission. Thats why i use maxsdkversion with permission declaration. For android version Higher than 4. 3 by default app private space is not accessible by any other app. You got this error because you may access the public storage space. Public storage directory always needs storage permission on all android versions.
@dhanush9311
@dhanush9311 5 жыл бұрын
The app in not installing sir
@lylenku
@lylenku 5 жыл бұрын
Thank you sir!
@rm4xn
@rm4xn 3 жыл бұрын
Muchas gracias, crack!
@FSIF-nq8dr
@FSIF-nq8dr 2 жыл бұрын
legend
@mikaelkolehmainen9098
@mikaelkolehmainen9098 5 жыл бұрын
Great Video!
Android tutorial (2018) - 77 - Camera API - Recording Video
6:12
PRABEESH R K
Рет қаралды 33 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
I Made a Roblox NPC That Gives You 2025 Goals
13:13
ByteBlox
Рет қаралды 989
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 844 М.
Building a scalable, modularized, testable app from scratch
21:31
Android Developers
Рет қаралды 192 М.
Pick an Image from the Gallery - Android Studio - Java
11:06
Atif Pervaiz
Рет қаралды 60 М.