Select the identity returned by the picture Requestcode
Intent innerintent = new Intent (intent.action_get_content); "Android.intent.action.GET_CONTENT"
Innerintent.settype (ContentType); View type String image_unspecified = "image/*";
Intent wrapperintent = Intent.createchooser (innerintent, NULL);
(Activity) context). Startactivityforresult (Wrapperintent, Requestcode);
Video
Intent innerintent = new Intent (intent.action_get_content);
Innerintent.settype (ContentType); String video_unspecified = "video/*";
Intent wrapperintent = Intent.createchooser (innerintent, NULL);
(Activity) context). Startactivityforresult (Wrapperintent, Requestcode);
Add Audio
Intent innerintent = new Intent (intent.action_get_content);
Innerintent.settype (ContentType); String video_unspecified = "video/*";
Intent wrapperintent = Intent.createchooser (innerintent, NULL);
(Activity) context). Startactivityforresult (Wrapperintent, Requestcode);
Recording
Intent Intent = new Intent (intent.action_get_content);
Intent.settype (CONTENTTYPE.AUDIO_AMR); String audio_amr = "AUDIO/AMR";
Intent.setclassname ("Com.android.soundrecorder",
"Com.android.soundrecorder.SoundRecorder");
(Activity) context). Startactivityforresult (Intent, Requestcode);
Shooting video
int durationlimit = Getvideocapturedurationlimit (); Systemproperties.getint ("Ro.media.enc.lprof.duration", 60);
Intent Intent = new Intent (mediastore.action_video_capture);
Intent.putextra (mediastore.extra_video_quality, 0);
Intent.putextra (Mediastore.extra_size_limit, sizeLimit);
Intent.putextra (Mediastore.extra_duration_limit, durationlimit);
Startactivityforresult (Intent, request_code_take_video);
Photo Request_code_take_picture for the returned identity
Intent Intent = new Intent (mediastore.action_image_capture); "Android.media.action.IMAGE_CAPTURE";
Intent.putextra (Mediastore.extra_output, Mms.ScrapSpace.CONTENT_URI); Output,uri.parse ("Content://mms/scrapspace");
Startactivityforresult (Intent, request_code_take_picture);
Android system call