Android Internal Storage why default private

I am confusing about little part of this documentation --http://developer.android.com/guide/topics/data/data-storage.html#filesInternal--

It says : You can save files directly on the device's internal storage. By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user).

But in write operation i assign it like that : (Context.MODE_PRIVATE)

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

I can also assign it readable or writable.

Is there any intention in this documentation paraghraph that i cannot notice ?


I can see that the mostly safe mode to use is Context.MODE_PRIVATE since the other modes are deprecated in API Level 17 as mentioned in Reference API. It is recommended to use something like Content Provider if you want to use this data outside your application.

链接地址: http://www.djcxy.com/p/85140.html

上一篇: 世界问题与幼稚洗牌

下一篇: Android内部存储为什么默认为私有