I am writing a media player which can play audio and video files. Here i am using
String[] proj= {MediaStore.Video.Media._ID,MediaStore.Video.Media.DATA,MediaStore.Video.Media.DISPLAY_NAME,
MediaStore.Video.Media.SIZE };
cursor = getContentResolver().query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj, null, null, null);
to query for the files. It's working fine. But it is giving only video files. So how can i get audio files and video files at a time.