Pick Image From Gallery in Android Studio (Source code) - Kotlin Tutorial

  Рет қаралды 18,575

Mullatoez

Mullatoez

3 жыл бұрын

Hey guys,
today we will be designing a simple app about how to pick an image from gallery in android using Kotlin.
GITHUB SOURCE CODE: github.com/mullatoez/pickImag...
Searching for remote job opportunities? Apply now at www.behiredremote.com
Cool Music for coding:
bit.ly/2Kp7de5​​
Instagram: mullatoez?...
Twitter: / mullatoez
ANDROID MEDIUM ARTICLES: / mullatoez
My blog: j-dev.hashnode.dev/
If u like this video, Like, Comment, Subscribe to support us...
#PickImageFromGallery​
#AndroidStudioTutorial
GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Feel free to email me at jaydevsengineer@gmail.com. I try my best to respond to everyone ❤️.

Пікірлер: 29
@MrJQ3d
@MrJQ3d 3 жыл бұрын
Great Tutorial! Congratulations, You did it simple and perfect!
@wickedgummybear3104
@wickedgummybear3104 3 жыл бұрын
Kinda hard to take serious without github source files though
@mullatoez
@mullatoez 3 жыл бұрын
@@wickedgummybear3104 Github source files available on my profile
@wickedgummybear3104
@wickedgummybear3104 3 жыл бұрын
@@mullatoez You should make a link in the description for that.. Because usually if its not there, theres no source files. But thanks for the reaction!
@mullatoez
@mullatoez 3 жыл бұрын
@@wickedgummybear3104 Ok
@hunteerboom1666
@hunteerboom1666 Жыл бұрын
Thank you useful video💖
@pedroazevedo2729
@pedroazevedo2729 2 жыл бұрын
I want to choose 2 pictures ( 1 for profile picture and other for a theme) in the same activity , how can I do it with this function , since we set the image on ActivityResult
@JD_TROUVETOU
@JD_TROUVETOU 2 жыл бұрын
Great tutorial
@mullatoez
@mullatoez 2 жыл бұрын
Thank you!
@yohankumar2441
@yohankumar2441 2 жыл бұрын
how to get the andoid drwable
@zvonacusbrle
@zvonacusbrle Жыл бұрын
Hi mull great content, do u know in which format is this data (i see Intent?) or u maybe know how to store it in database (my own server db).
@mullatoez
@mullatoez Жыл бұрын
Hi zvonacusbrle, Sorry for late replies. The image can be store as byte format. However if this is a for a large user base, it will take alot of memory so its advisable you store the image path to a server and use that to render it on your ui for usage purposes. I hope that helps. Just incase you want more clarification, you can reach me out on twitter for more clarification.
@aloysiusaji966
@aloysiusaji966 2 ай бұрын
Great Tutorial, btw how to add the name image in this code? thanks
@AP-wz6fb
@AP-wz6fb Жыл бұрын
I follow the tutorial but my app crashes on launch, any help?
@mullatoez
@mullatoez Жыл бұрын
Hey... sorry for that. It's hard for me to know the exact root cause of the crash without the error message. Share with me the logs and I will be happy to help you out
@bigo2012
@bigo2012 Жыл бұрын
How can I store the image in some sort of local database? (Like room or SharedPreferences)
@shaikhnabeel6443
@shaikhnabeel6443 11 ай бұрын
Store in the application cache directory or file directory using file provider.
@bigo2012
@bigo2012 11 ай бұрын
​@@shaikhnabeel6443I already used bitmap to store the image
@jonnavadaneelima4495
@jonnavadaneelima4495 Жыл бұрын
Great tutorial I really liked it Can you please share the code in the comment section because in the screen it is not visible clearly
@mullatoez
@mullatoez Жыл бұрын
Sure. I will be sharing the source code
@Daniel-W
@Daniel-W Жыл бұрын
thanks bro! Please answer the question)) How to transfer the selected image from the gallery to the second activity?
@mullatoez
@mullatoez Жыл бұрын
Hey... Sorry for the late reply. You can always use the image url and you send it as a bundle when navigating to a new activity using intent.putExtras()... That should work. I can do a video on the same to elaborate that.
@Daniel-W
@Daniel-W Жыл бұрын
@@mullatoezThanks, i already do it!!
@mullatoez
@mullatoez Жыл бұрын
That is beautiful.
@itsamevic
@itsamevic 3 жыл бұрын
startActivityForResult is now deprecated, what should we do?
@mullatoez
@mullatoez 2 жыл бұрын
From now, startActivityForResult() has been deprecated so use new method instead of that. fun openActivityForResult() { startForResult.launch(Intent(this, AnotherActivity::class.java)) } val startForResult = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result: ActivityResult -> if (result.resultCode == Activity.RESULT_OK) { val intent = result.data // Handle the Intent //do stuff here } }
@rlux70
@rlux70 2 жыл бұрын
@@mullatoez Could use an update. I'm having issues trying to follow. Please advise.
@mullatoez
@mullatoez 2 жыл бұрын
@@rlux70 I can make an update on this. Stay tuned for a new video
@rlux70
@rlux70 2 жыл бұрын
@@mullatoez Thank you. I appreciate it.
THIS Is How You Use the New Android 13 Photo Picker (It's AMAZING!)
9:55
We Built an App in 24 Hours [No Code]
11:56
Raw Startup
Рет қаралды 418 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
How to Upload a File With Retrofit - Android Studio Tutorial
16:33
Philipp Lackner
Рет қаралды 40 М.
Fundamentals of Compose Layouts and Modifiers - MAD Skills
11:56
Android Developers
Рет қаралды 89 М.
Custom layouts and graphics in Compose
20:25
Android Developers
Рет қаралды 51 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН