android - Record video and store in private mode -


i need save video files recorded camera in way can not accessed application or user connecting device pc.

i want can access files application created them.

this how set output path files record video:

 mediarecorder videorecorder;      //(...)      videorecorder.setoutputfile(environment.getexternalstoragedirectory().getpath() + "/myfile.mp4"); 

is possible in private mode?

this saves internal storage, it's accsesible app.

file file = new file(getfilesdir(),filename); videorecorder.setoutputfile(file.getabsolutepath()); 

if want know more: http://developer.android.com/training/basics/data-storage/files.html


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -