以私人模式录制视频和存储

Record video and store in private mode

我需要以其他应用程序或将设备连接到 PC 的用户无法访问的方式保存相机录制的视频文件。

我希望只有创建它们的应用程序才能访问这些文件。

这是设置输出路径文件以录制视频的方法:

 MediaRecorder videoRecorder;     
//(...)    
 videoRecorder.setOutputFile(Environment.getExternalStorageDirectory().getPath() + "/myfile.mp4");

是否可以在私人模式下进行?

这会保存到内部存储空间,仅供您的应用访问。

File file = new File(getFilesDir(),filename);
videoRecorder.setOutputFile(file.getAbsolutePath());

如果您想了解更多:http://developer.android.com/training/basics/data-storage/files.html