简体   繁体   English

如何在单击按钮上打开内置的图库应用程序

[英]How to open built-in gallery app on click button

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.只打开像 chrome、相机、map 等。

Add following code to open Gallery app: startActivity(Intent.makeMainSelectorActivity(Intent.ACTION_MAIN,Intent.CATEGORY_APP_GALLERY))添加以下代码以打开图库应用程序: startActivity(Intent.makeMainSelectorActivity(Intent.ACTION_MAIN,Intent.CATEGORY_APP_GALLERY))

For more info related to CATEGORY_APP_GALLERY有关CATEGORY_APP_GALLERY的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM