I am using camera intent for video recording, see my code here
Button makeVideo = (Button) findViewById(R.id.buttonmakeVideo );
makeVideo.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
startActivityForResult(intent, REQUEST_VIDEO_CAPTURED);
}
});
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK)
{
if (requestCode == REQUEST_VIDEO_CAPTURED)
{
uriVideo = data.getData();
String timeStamp = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date());
cameraVideoList.add(timeStamp);
adapter.notifyDataSetChanged();
cameraVideoURIList.add(uriVideo.toString());
}
}
}
I successfully record video and can play the video in my app but the videos are stored in camera memory, I want to create a directory on SD card like dirMyVideos and store the videos in the directory how is it possible please guide me in this respect.
Here is my logcat