Pick an Image from the Gallery – Android Studio - Kotlin

preview_player
Показать описание
In this video we will pick image from Gallery on Button click and set that image to an ImageView.
For this we will also handle Runtime Permission for READ_EXTERNAL_STORAGE if system OS is Marshmallow or above.

Feel free to comment in case of any problem

Chanel:
Websites:
Apps/Games on PlayStore:

If u like this video, Like, Comment, Subscribe to support us...
Рекомендации по теме
Комментарии
Автор

Still works in 2021, just don't forget about view binding for the button if you are working in a fragment. Great tutorial!

colintmcneill
Автор

You're a hero. I've searched quite long before I found your video, and it worked. Keep it up!

arnovanliere
Автор

Awesome.. its also work with camera captured image code on both..

nikhilmarathe
Автор

worth the time worked at first try !>.

yashmittal
Автор

how to leave the image saved so that every time you open the app the image is there?

marciopaulo
Автор

That's great for this video, It is work well with Activity. Could all of you discover the way to pick image from Gallery with Fragment ? I have researched and developed a new assignment with it for a week but not yet get the result.

NeangChhongMakara
Автор

thanks for the video, i just have a question can you save this selected image in shared preference to show when you open the app again or you need to do other method.

shiden
Автор

how can i fetch multy photo at the same time?

mahaalbarghouthi
Автор

good job bro , i want to know how can i learn all of that methodes and class ? its so difficult any advice

ressayabde
Автор

Hi Sir, what if i need to add two image in two ImageView, i had tried to repeat the code, but when I pick the image, the same image will shown in both ImageView.

yapziqing
Автор

how can i user the file chooser on the items that i edit in my adapter?

chefgreen
Автор

I would like to ask you, can you help me ?
How do you convert bytearray to bitmap image in Kotlin?

purnamiindryaswari
Автор

Hello,
app is working but this error appeared with last override method:
[overriding method should call super.onActivityResult]
why ?

yasserelgammal
Автор

sir how to add an image file name that image that was uploaded.Thank you :)

gezafiqrullah
Автор

Sir how to do similar in fragment can you help?

my_
Автор

How about unselecting the selected image ?

techpal
Автор

Assalamualaikum
i am from Indonesia, i have some troble. it`s cant display picture
please upload this project to GitHub or to google drive.
for download

Terima Kasih

uppipedia
join shbcf.ru