Professional Documents
Culture Documents
L20 - Internal Storage Files
L20 - Internal Storage Files
File Storage
Content
2
Rahul Talreja, Neusoft
Android Internal Storage
Storage of the private data on the device memory.
By default, saving and loading files to the internal storage are private
to the application and other applications will not have access to these
files.
When the user uninstalls the applications the internal stored files
associated with the application are also removed.
4
Rahul Talreja, Neusoft
Streams
5
Rahul Talreja, Neusoft
Streams
A way of sequentially accessing a file. In Streams you can
process the data one at a time as bulk operations are unavailable
with them.
It is suitable for any kind of file, however not quite appropriate for
text files.
7
Rahul Talreja, Neusoft
Byte Streams
8
Rahul Talreja, Neusoft
Character Streams
9
Rahul Talreja, Neusoft
Reading & Writing
10
Rahul Talreja, Neusoft
Reading & Writing
11
Rahul Talreja, Neusoft
Example
12
Rahul Talreja, Neusoft
13
Rahul Talreja, Neusoft