Làm cách nào để chỉ lọc hình ảnh và video trong Thư viện Android?Làm cách nào để chỉ lọc hình ảnh và video trong Thư viện Android?
Ví dụ:
intent.setType("image/*"); //returns only images
intent.setType("video/*"); //returns only videos
intent.setType("*/*"); //returns all videos,images, audios,contacts,etc..
Tôi muốn chỉ hình ảnh và video. Làm thế nào tôi có thể thực hiện điều này?
http://www.java2s.com/Open-Source/Android/android-platform-apps/Gallery/com/android/camera/ImageGallery.java.htm –