任何其他应用程序创建的文件夹,可以无法访问 [英] Create Folder that can not accessible by any other application

查看:85
本文介绍了任何其他应用程序创建的文件夹,可以无法访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个一个文件夹不能被任何其他应用程序访问。

i want to create a one folder that can not accessible by any other application.

是否有可能做到这一点?如果是的话给我的解决方案如何实现这一功能。

Is it possible to do this ? If yes then give me the solution how to achieve this functionality.

推荐答案

使用内部存储,像这样:

Use internal storage like so:

String FILENAME = "hello_file";
String string = "hello world!";

FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();

这篇关于任何其他应用程序创建的文件夹,可以无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆