It's the filepath (mFileName
);
Correct your demo()
method. This is how it should look like:
public demo() {
mFileName = Environment.getExternalStorageDirectory().getAbsolutePath();
mFileName += "/my_Record";
}
You need to add a slash (/) between the directory path and the filename, of course. Also try adding a file extension, like "/my_Record.3gp" if you use the OutputFormat.THREE_GPP
.