在Android的多MIME类型 [英] Multiple MIME types in Android
本文介绍了在Android的多MIME类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法使用 intent.setType()
并提供多种类型广泛(如图像的和的视频)?
Is there a way to use intent.setType()
and supply multiple broad types (like images and video)?
我使用的是 ACTION_GET_CONTENT
。这似乎是只有逗号分隔类型的工作。
I am using an ACTION_GET_CONTENT
. It seems to be working with just comma-separated types.
推荐答案
其实,多的MIME类型的支持。你甚至尝试过???
Actually, multiple mime-types are supported. Have you even tried it???
例如: intent.setType(图像/ *,视频/ *)
将显示照片和视频...
For example: intent.setType("image/*,video/*")
will display photos and videos...
对于我来说它的工作原理。它应该为你工作太...
For me it works. It should work for you too...
这篇关于在Android的多MIME类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文