0

From my app on click the button open gallery app. for example, MI's phone has its own gallery app, Samsung, Oneplus, etc. so how can I open the built-in gallery app?

note I don't want to take images from the gallery. just only open like chrome, camera, map, etc.

Abhi S
  • 250
  • 2
  • 18
  • Check this answer it may help you - https://stackoverflow.com/questions/6016000/how-to-open-phones-gallery-through-code – Android Geek Feb 18 '22 at 04:19
  • I want to just open the app. not to get images from the gallery. like on click open chrome, map, etc – Abhi S Feb 18 '22 at 04:30

1 Answers1

1

Add following code to open Gallery app: startActivity(Intent.makeMainSelectorActivity(Intent.ACTION_MAIN,Intent.CATEGORY_APP_GALLERY))

For more info related to CATEGORY_APP_GALLERY

Android Geek
  • 8,956
  • 2
  • 21
  • 35