I am trying to record a video on pressing a button. I am using a MediaStore Intent to record the video. I cant figure out how to save the file in mpeg format and display it using a videoview. I would appreciate it if someone could provide an example. Thanks.
So far my code is like this : public void onCreate(Bundle savedInstanceState) { ..... ...... vidRecorder.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent recorder = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); recorder.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); startActivityForResult(videoIntent, VIDEO_OPTION); } }); ..... } And my onActivityResult function : protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case VIDEO_OPTION: break; } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en