How to launch the Phone's Gallery?

design
beginner

#1

HI
I don’t know if that is the correct code. Please help

I just want to click a button to open my phone’s gallery

Thanks in advance


Frequently Asked Questions (FAQ)
#2

Most phones use different galleries, so it would be hard to make this work on all devices.

You can use this app and find the package name and activity for your gallery.


#3

Hi thank you for the reply i saw this post and how can i implement this if possible?


#4

@simpleandroidtech, there’s also an ImagePicker component which might work for you?


#5

Try this:

I haven’t tested it so it may not work. Let me know.


#6

Why i haven’t think of that… darn me… i spent hours finding the right code for the activity starter… i am so embarrassed right now … thank you sir It worked 100% @Domhnall


#7

I will also try this one sir


#8

100% Percent working tried it to my friends phone both are opening the gallery. a Note 2 Alcatel one touch and the other one is a generic Chinese android phone.

THANK YOU @Conor so it does work after all :slight_smile:
DESIGNER

ACTION:android.intent.action.VIEW
DATA URI:content://media/internal/images/media

BLOCKS


Open Image in Gallery
#9

Thank you for confirming that it works.

Glad to see you got it working.

I will add this to the FAQ.


#10

try this
ACTION android.intent.action.PICK
Datatype image/*
this opens other media apps options to choose from

or
ACTION android.intent.action.GET_CONTENT
Datatype image/*


#11

I will try this one too … Thanks


#12

hello, please did it work ?


#13

@skapezempire i tried the two same error 601: No corresponding activity was found


#14

It works on my test device; Android V 2.3
Maybe It’s deprecated

Check out "App Inventor ActivityStarter"
https://play.google.com/store/apps/details?id=appinventor.ai_mletsch80.AppInvActivityStarter


#15

hi conor, I m new in this community but I am looking for solution

I just want to hide the url whenever I use webviewer
or
I can put something to hide that url

looking fwd for ur reply.


#16

Hi @nitin, welcome to the Thunkable community. I’m a little confused, what does your question have to do with gallery apps?


#17

A post was split to a new topic: Issue with responsive website


#18

USE ACTIVITY STATER
ACTION- android.intent.acition.PICK
Data Type- image/*