Wednesday, June 1, 2011

Androi : Using the Internal Storage

Using the Internal Storage
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). When the user uninstalls your application, these files are removed.

To create and write a private file to the internal storage:

1.Call openFileOutput() with the name of the file and the operating mode. This returns a FileOutputStream.
2.Write to the file with write().
3.Close the stream with close().

No comments:

Post a Comment