I would suggest using separate request codes for each of the calls to
startActivityForResult()
. Otherwise, there's no way to distinguish between them in
onActivityResult()
.
If, for example, you are wanting to show the first frame of the captured video in the
VideoView
object, just call its
seekTo(0)
method.
Another idea would be to assign a thumbnail to it, something like:
Bitmap bmThumb = ThumbnailUtils.createVideoThumbnail("path", MediaStore.Images.Thumbnails.MINI_KIND);
BitmapDrawable bmDrawable = new BitmapDrawable(bmThumb);
videoHolder.setBackgroundDrawable(bmDrawable);
As far as audio goes, there's nothing to display. So even if you captured something using the Voice Recorder app, it's just audio -- no image(s).