views:

197

answers:

0

Hi! I'm interested in capturing media to use in my activity in two ways:
1) capturing immediately from the supplied app. (like http://stackoverflow.com/questions/2314958/using-the-camera-activity-in-android)

Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); this.startActivityForResult(camera, PICTURE_RESULT);


2) browse a picture/video/audio gallery and pick from the list.
I notice I can call up for the photo gallery

Intent intent = new Intent(Intent.ACTION_VIEW, target);
startActivity(intent);


But how about for video only? audio only? How will I get the URI from any of them?