How to open built-in gallery app on click button

682 Views Asked by At

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.

1

There are 1 best solutions below

0
Android Geek On BEST ANSWER

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