I have a button made and when clicked I would like it to open up a gallery. How would I do this?
Asked
Active
Viewed 208 times
1 Answers
1
There's already a question about this. You need to make an Intent
. Here's the code from that answer:
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Picture"),SELECT_IMAGE);

Community
- 1
- 1
-
-
1
-
nothing if you can help can you go here http://stackoverflow.com/questions/11489781/trouble-opening-the-gallery#comment15175619_11489781 – brian Jul 15 '12 at 07:38