Storing Files in Internal External Storage
suggest changeSyntax
FileInputStream openFileInput (String name)FileOutputStream openFileOutput (String name, int mode)File (File dir, String name)File (String path)File getExternalStoragePublicDirectory (String type)File getExternalFilesDir (String type)
Parameters
| Parameter | Details |
|---|---|
| name | The name of the file to open. NOTE: Cannot contain path separators |
| mode | Operating mode. Use MODE_PRIVATE for default operation, and MODE_APPEND to append an existing file. Other modes include MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE, which were both deprecated in API 17. |
| dir | Directory of the file to create a new file in |
| path | Path to specify the location of the new file |
| type | Type of files directory to retrieve. Can be null, or any of the following: DIRECTORY_MUSIC, DIRECTORY_PODCASTS, DIRECTORY_RINGTONES, DIRECTORY_ALARMS, DIRECTORY_NOTIFICATIONS, DIRECTORY_PICTURES, or DIRECTORY_MOVIES |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents