开发者

How to browse android gallery for movie/media files in SDK

开发者 https://www.devze.com 2023-02-12 01:55 出处:网络
Can anybody tell me how to browse for a movie file from the android folders (either phone/SD Card memory). Let\'s say I got a movie file on the phone memory and I want to access it from my application

Can anybody tell me how to browse for a movie file from the android folders (either phone/SD Card memory). Let's say I got a movie file on the phone memory and I want to access it from my application, what is the best way to d开发者_Go百科o it?

Please help me.


I think you need to use

Intent intent = new Intent(MediaStore.INTENT_ACTION_MEDIA_SEARCH);

I'm not sure but I hope this put you in the right track

here the link for this class

http://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MEDIA_SEARCH

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号