开发者

make private folder

When my application starts, I am creating one folder/directory and writing one file i开发者_运维技巧nto it Now what I want is, only my application can access this folder , no other can access this Is it possible in Android or Not Please can some one tell me

Thanks


for that you need to make that folder in application's internal memory, so that no one can access that folder .

private File cacheDir = null;
cacheDir = new File(getCacheDir(),"your folder name");
if (!cacheDir.exists())
    cacheDir.mkdirs();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜