Capture Image & Display in ImageView | Android App Development Tutorials | Part 1

  Рет қаралды 81,022

SmallAcademy

SmallAcademy

4 жыл бұрын

Learn How to Open Camera in our android app and capture image and display the full size image in imageview, we will Also learn how to save the image into gallery. Using Android Studio.
In the later part of the video we are going to get full image url so that we can upload this image in server like google firebase firestore.
This is First Part of the series. You can Find All the Source code used in the Tutorial in my blog.
smallacademy.co/blog/android/...
Follow me on Github: github.com/bikashthapa01
Problems ? Join Small Community Here: / 2422862671359127
Android Camera API Documentation:
developer.android.com/trainin...
Other Awesome Android Tutorials:
Firebase OTP Tutorial: • Firebase Phone Authent...
Make Story telling Android APP:
/ playlistlist=pllgt4gxi...
#androidCameraTutorial #androidTutorials
Search Terms:
android capture image from camera programmatically,
android capture image from camera and display in activity,
android capture image from camera and display in another activity,
android get image from camera or gallery,
capture image from camera android source code,
android capture image from camera and save in gallery,
android capture image from camera or gallery,
android capture image from camera and save example,
"
"camera intent android stack overflow"
"get full size image from camera android"
"camera access permission android"
"android take photo automatically"
"select image from gallery in fragment android"
"compress image taken from camera in android"
"android get image from camera or gallery"
"data.getdata() null android camera"
"android studio take picture programmatically"
"image picker android stack overflow"
"pick image from gallery android nougat"
"camera to gallery"
"gallery permission android"
"capture image from camera android github"
"capture multiple images from camera android"
"action_image_capture"
"android camera tutorial"
"android custom camera example"
"android camera intent image quality"
"android image blur problem"
"get uri from bitmap android"
"android get image from gallery"
"pick image from gallery android example"
"android action_image_capture"
"select image from gallery androidhive"
"android save image to gallery"
"how to open camera in android studio"
"how to open gallery in android"
"surfaceview camera android example"
"android camera intent high resolution"
"how to open front camera in android studio"
"camera intent android stack overflow"
"get full size image from camera android"
"camera access permission android"
"android take photo automatically"
"select image from gallery in fragment android"
"compress image taken from camera in android"
"android get image from camera or gallery"
"data.getdata() null android camera"
"android studio take picture programmatically"
"image picker android stack overflow"
"pick image from gallery android nougat"
"camera to gallery"
"gallery permission android"
"capture image from camera android github"
"capture multiple images from camera android"
"action_image_capture"
"android camera tutorial"
"android custom camera example"
"android camera intent image quality"
"android image blur problem"
"get uri from bitmap android"
"android get image from gallery"
"pick image from gallery android example"
"android action_image_capture"
"select image from gallery androidhive"
"android save image to gallery"
"how to open camera in android studio"
"how to open gallery in android"
"surfaceview camera android example"
"android camera intent high resolution"
"how to open front camera in android studio"

Пікірлер: 81
@annisanurfirdausi9960
@annisanurfirdausi9960 Жыл бұрын
Thank youuu, it's worked perfectly !!!
@divyeshponkiya6027
@divyeshponkiya6027 3 жыл бұрын
Thank You , very help full tutotial !!!
@uyandanxumalo8242
@uyandanxumalo8242 3 жыл бұрын
Thank You so much, it worked very well...
@erikbrandt3956
@erikbrandt3956 Жыл бұрын
Great tutorial, only issue I have is that on OnRequestPermissionsResult() and onActivityResult() I can't remove the "super" in the beginning of the methods. If I add them no issue. Any thoughts on it?
@gowdhampr9570
@gowdhampr9570 4 жыл бұрын
Neat and clean tutorial, keep it up! All the best
@SmallAcademy
@SmallAcademy 4 жыл бұрын
Thanks
@PAOLOSPORTING
@PAOLOSPORTING 4 жыл бұрын
Tnx. Very Helpful.
@nwcoder
@nwcoder 9 ай бұрын
Informative video❤
@piyasidey2117
@piyasidey2117 Ай бұрын
Thank you.
@chobelakakumbi6747
@chobelakakumbi6747 Жыл бұрын
Thanks for this tutorial. In 2022, startActivityForResult(camera, CAMERA_REQUEST_CODE); startActivityForResult is deprecated. What is the work around?
@andriikravchuk9217
@andriikravchuk9217 4 жыл бұрын
Thank you, that great tutorial)
@SmallAcademy
@SmallAcademy 4 жыл бұрын
Glad you like it
@songwriterjo3789
@songwriterjo3789 2 жыл бұрын
this is the best thanks
@Dtomper
@Dtomper 2 жыл бұрын
Thank you so muuuuuuuuch
@TalhaAbbas-ty5dl
@TalhaAbbas-ty5dl Жыл бұрын
Good yar
@rakshitchhetri3033
@rakshitchhetri3033 3 жыл бұрын
Helpfull !!
@SwagatKumarIndia
@SwagatKumarIndia Жыл бұрын
Great video. I could recreate this on my moto G play (android 10). However, it says the function 'startActivityForResult' is deprecated. Is there any updated function for this?
@benjamintogonon3294
@benjamintogonon3294 4 жыл бұрын
Hi sir, why is it when i try to put the uri the same as yours the app shutdown.
@shivendrasingh2823
@shivendrasingh2823 3 жыл бұрын
Can we add gallery button option to any other app in mobile who is having only camera button
@Miguel46001
@Miguel46001 3 жыл бұрын
How can i put the image on a list view or recycler view?
@opaapa4180
@opaapa4180 2 жыл бұрын
Sorry never said this to a free video publisher but this was not beginner friendly at all. I appreciate you tho for posing it keep it up
@damiandeligdisch822
@damiandeligdisch822 4 жыл бұрын
Hello, can you use Sourcelabs to take a photo, with this code?
@masbro1901
@masbro1901 4 жыл бұрын
16:42 that "get"may produce NullPointerException.
@dmnjeetsingh1
@dmnjeetsingh1 3 жыл бұрын
bro thanks a lot this tutorial can u help me to send a code select image from gallery and send it to next activity
@royalagent2113
@royalagent2113 2 жыл бұрын
i've tried this but when i get the image the resolution was 250 x 187, how can i get a original resolution?
@kifahnemer8652
@kifahnemer8652 3 жыл бұрын
hello when i use selectedImage it shows an error to create local variable or something how can i solve this
@tnnz9920
@tnnz9920 3 жыл бұрын
Can make the capture from photo to recycler view?
@francoiniego6821
@francoiniego6821 Жыл бұрын
Sir,...is there a kotlin tutorial on this? thanks
@sialeeMK
@sialeeMK 4 жыл бұрын
Thank you, sir, can you show us how to capture or get a high-quality image ?
@SmallAcademy
@SmallAcademy 4 жыл бұрын
Please watch all the video on this series.
@user-oy2mi4oz7t
@user-oy2mi4oz7t Жыл бұрын
thank you ,but how can i store it in a local satabase please
@ankurtomar3994
@ankurtomar3994 3 жыл бұрын
with your code capture image through camera button is not responding pls help
@rajkumar-od6lu
@rajkumar-od6lu 3 жыл бұрын
Hi sir can u do it in fragment sir plssss....... 🙏
@yadavyash252
@yadavyash252 3 жыл бұрын
Camera button is not working after this part of the video, please provide any solution. I had tried everything which was present in comment section, but still the camera button is not working in the end of the project.
@ulikulis196
@ulikulis196 4 жыл бұрын
How get to bitmap fullsize photo?
@hmodexl
@hmodexl 2 жыл бұрын
how can i get uri of that image ?
@vijayjaiswal120
@vijayjaiswal120 4 жыл бұрын
how to get date and time of image capture
@ankxnjst
@ankxnjst 2 жыл бұрын
Someone knows if this code still works in Android 10 and higher?
@gloirakim1158
@gloirakim1158 4 жыл бұрын
Thank you for your great tutorial! Somehow, the captured image does not show on the main screen, and instead, I still see the grid green screen for image view. Do you have any idea how I can solve this problem? Thanks in advance!
@lukeares1165
@lukeares1165 3 жыл бұрын
Not sure if anyone cares but if you're stoned like me atm you can stream pretty much all of the latest movies and series on instaflixxer. Have been watching with my brother these days xD
@iramanuel3377
@iramanuel3377 3 жыл бұрын
@Luke Ares Yup, I have been watching on instaflixxer for years myself :)
@blazeowen1135
@blazeowen1135 3 жыл бұрын
@Luke Ares yup, been using instaflixxer for years myself :D
@sushmareddy859
@sushmareddy859 2 жыл бұрын
can we get a git hub linkfor this code
@NaufalHawari_
@NaufalHawari_ 3 жыл бұрын
what is CAMERA_PERM_CODE?
@aamirkamaal7052
@aamirkamaal7052 3 жыл бұрын
Startactivityforresult deprecated aarha hai please reply kare do din se solve nhi ho rha hai
@bhushan2k
@bhushan2k 3 жыл бұрын
Where is part 2?
@leandrosistemavs1043
@leandrosistemavs1043 4 жыл бұрын
in kotlin?
@zahrazaidi4095
@zahrazaidi4095 4 жыл бұрын
where is source code there are many folders
@waheedg1644
@waheedg1644 2 жыл бұрын
This is not getting the image in android 11
@hakemmrl
@hakemmrl 3 жыл бұрын
why i cant select startActivityForResult() ?
@harukyy8494
@harukyy8494 3 жыл бұрын
me too
@georgealbo
@georgealbo 2 жыл бұрын
OnrequestPermissionsResult Deprecated
@DilpreetSingh-pd6co
@DilpreetSingh-pd6co 2 жыл бұрын
i want to capture image in full HD
@SmallAcademy
@SmallAcademy 2 жыл бұрын
checkout this documentation developer.android.com/guide/topics/media/camera
@georgealbo
@georgealbo 2 жыл бұрын
startActivityForresult deprecated function
@amirinyoutube
@amirinyoutube 3 жыл бұрын
Didn't worked! I don't know why Can`t open the camera and Gallery!
@virtiparekh1394
@virtiparekh1394 4 жыл бұрын
when i m clicking camera button but i m unable to open camera , i given all the permission in manifest file.Can you solve ?
@SmallAcademy
@SmallAcademy 4 жыл бұрын
Please share ur source code
@virtiparekh1394
@virtiparekh1394 4 жыл бұрын
@@SmallAcademy where?
@SmallAcademy
@SmallAcademy 4 жыл бұрын
Github
@SmallAcademy
@SmallAcademy 4 жыл бұрын
Did you get any error while opening the camera ?
@virtiparekh1394
@virtiparekh1394 4 жыл бұрын
@@SmallAcademy no
@shykatemam1529
@shykatemam1529 3 жыл бұрын
my "onActivityResult" stays red and gives a warning why??
@sheryntan3223
@sheryntan3223 3 жыл бұрын
I encountered the same problem too! Would greatly appreciate it if you share with me, how you resolved the issue!! Thanks a lot
@JessieJUruguayFanPage
@JessieJUruguayFanPage 3 жыл бұрын
could you solve it?
@shykatemam1529
@shykatemam1529 3 жыл бұрын
no
@JessieJUruguayFanPage
@JessieJUruguayFanPage 3 жыл бұрын
@@shykatemam1529 Solved it. In case you need it. Just needed to add super.onActivityResult(requestCode, resultCode, data); Like this: @Override protected void onActivityResult (int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == CAMERA_REQUEST_CODE) { Bitmap image = (Bitmap) data.getExtras().get("data"); selectedImage.setImageBitmap(image); } }
@Jimil_soni
@Jimil_soni Жыл бұрын
The method is deprecated in latest android version
@gunjanbansal2860
@gunjanbansal2860 4 жыл бұрын
my image size is very very small
@SmallAcademy
@SmallAcademy 4 жыл бұрын
You can change the sizes from imageview layout
@gunjanbansal5732
@gunjanbansal5732 4 жыл бұрын
@@SmallAcademy i have given match parent
@alainleclerc4523
@alainleclerc4523 2 жыл бұрын
scaleType="centerCrop" in imageView attributes
@ashruaa
@ashruaa 4 жыл бұрын
Who’s here form vanoss
@fred273
@fred273 Жыл бұрын
Thank you.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 725 М.
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 86 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 8 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 34 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 1,8 МЛН
How to Build a Camera App With CameraX - Taking Photos
29:35
Philipp Lackner
Рет қаралды 34 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 128 М.
Open Camera In Android Studio | Capture Image | Java
5:37
Code Gain
Рет қаралды 25 М.
Master Flutterflow API Integration: Complete App Tutorial
34:08
just xolotl
Рет қаралды 5 М.
Upload Images to Firebase in Android Studio | Beginner's Guide
8:36
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 86 МЛН