标签:oncreate 权限 except existing and for which tab ant
Returns the absolute path to the application specific cache directory on the filesystem. These files will be ones that get deleted first when the device runs low on storage. There is no guarantee when these files will be deleted. Note: you should not rely on the system deleting these files for you; you should always have a reasonable maximum, such as 1 MB, for the amount of space you consume with cache files, and prune those files when exceeding that space.
openFileOutput(String,
int)
getFileStreamPath(String)
getDir(String,
int)
Retrieve, creating if needed, a new directory in which the application can place its own custom data files. You can use the returned File object to create and access files in this directory. Note that files created through a File object will only be accessible by your own application; you can only set the mode of the entire directory, not of individual files.
Name of the directory to retrieve. This is a directory that is created as part of your application data. | |
mode |
Operating mode. Use 0 or MODE_PRIVATE for
the default operation, MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE to
control permissions. |
---|
openFileOutput(String,
int)
Returns the absolute path on the filesystem where a file created with openFileOutput(String,
int)
is stored.
openFileOutput(String,
int)
getFilesDir()
getDir(String,
int)
Returns the absolute path to the directory on the filesystem where files created with openFileOutput(String,
int)
are stored.
Open a private file associated with this Context‘s application package for reading.
FileNotFoundException |
---|
Open a private file associated with this Context‘s application package for writing. Creates the file if it doesn‘t already exist.
name | The name of the file to open; can not contain path separators. |
---|---|
mode | Operating mode. Use 0 or MODE_PRIVATE for the default operation, MODE_APPEND to append to an existing file, MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE to control permissions. |
FileNotFoundException |
---|
Delete the given private file associated with this Context‘s application package.
Returns an array of strings naming the private files associated with this Context‘s application package.
Gets the Android data directory.
用File返回数据文件的根目录,返回的文件的路径为“/data”。该目录下的文件是只读。应用程序无法对该目录下的文件进行写操作。
Gets the android Download/Cache content directory.
用File返回缓存文件的根目录,返回的文件的路径为“/cache”。对于第三方应用程序。该目录下的文件是只读。第三方应用程序无法对该目录下的文件进行写操作。
用File返回Android系统文件的根目录,返回的文件的路径为“/system”。该目录下的文件是只读。应用程序无法对该目录下的文件进行写操作。
标签:oncreate 权限 except existing and for which tab ant
原文地址:http://www.cnblogs.com/Free-Thinker/p/7388888.html