if(android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))
camera.start_record(android.os.Environment.getExternalStorageDirectory()+ filename);
else
Toast.makeText(CameraVideo.this, "Please insert SD card for storage", Toast.LENGTH_SHORT);
camera.start_record(android.os.Environment.getExternalStorageDirectory()+ filename);
else
Toast.makeText(CameraVideo.this, "Please insert SD card for storage", Toast.LENGTH_SHORT);