简体   繁体   English

打开画廊形式的android应用程序的特定专辑

[英]Open specific album of gallery form android app

Is it possible to open specific album of gallery from application? 是否可以从应用程序打开画廊的特定专辑? I have searched on internet, but did not find anything like this. 我已经在互联网上进行搜索,但没有找到类似的内容。 I found that how to get reference of images from specific album and display them inside the app at my own. 我发现了如何从特定相册中获取图像的参考,并在我自己的应用程序中显示它们。 Need to know about the above mentioned possibility of opening gallery from app (but specific album of gallery not just gallery) 需要了解从应用程序打开画廊的上述可能性(但画廊的特定专辑不只是画廊)

Thanks in advance! 提前致谢!

You have to locate the URI of that specific album's name saved on the SDcard. 您必须找到保存在SD卡上的特定专辑名称的URI。 Something like this could help you 这样的事情可以帮助你

intent.setType("file:///sdcard/image/nameofyouralbum/*"); 

OR intent.setType("file:///sdcard/nameofyouralbum/*"); intent.setType("file:///sdcard/nameofyouralbum/*");

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

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