This page (revision-58) was last changed on 23-Apr-2022 17:06 by HarryMetske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
58 23-Apr-2022 17:06 29 KB HarryMetske to previous
57 23-Apr-2022 17:05 29 KB HarryMetske to previous | to last
56 23-Apr-2022 17:05 28 KB HarryMetske to previous | to last
55 23-Apr-2022 17:05 26 KB Harry Metske to previous | to last
54 23-Apr-2022 17:05 26 KB Harry Metske to previous | to last
53 23-Apr-2022 17:05 24 KB Harry Metske to previous | to last
52 23-Apr-2022 17:05 24 KB 10.0.0.138 to previous | to last
51 23-Apr-2022 17:05 23 KB 10.0.0.138 to previous | to last
50 23-Apr-2022 17:05 23 KB 10.0.0.138 to previous | to last
49 23-Apr-2022 17:05 22 KB 10.0.0.138 to previous | to last
48 23-Apr-2022 17:05 22 KB 10.0.0.138 to previous | to last
47 23-Apr-2022 17:05 22 KB 10.0.0.138 to previous | to last
46 23-Apr-2022 17:05 20 KB 10.0.0.138 to previous | to last
45 23-Apr-2022 17:05 20 KB 10.0.0.138 to previous | to last
44 23-Apr-2022 17:05 20 KB HarryMetske to previous | to last
43 23-Apr-2022 17:05 19 KB HarryMetske to previous | to last
42 23-Apr-2022 17:05 19 KB Harry Metske to previous | to last
41 23-Apr-2022 17:05 19 KB Harry Metske to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 695 added 52 lines
__SharedPreferences__\\
Small amounts of primitive data.\\
A persistent map, key-values, are persisted across application sessions.
''Activity.getPreferences(mode)'' (mode=private) for one activity.\\
''Context.getSharedPreferences(name, mode)'' for data shared across multiple activities.
SharedPreferences.edit() returns a SharedPreferences.Editor object, and then things like ''putInt() putString() and remove(key)'', and finally ''Editor.commit()''.
retrieving sharedprefs:
* getAll()
* getString()
* getBoolean()
__PreferenceFragment__\\
To display and modify User Preferences.
__File Storage__
__Internal Storage__\\
Small to medium amounts of private data, private to the applications.
__File API__
''FileOutputStream.openFileOutput(String name, int mode) '' opens private file for writing, creates it if it does not exist.
__External Storage__\\
Larger amounts of data that is non-private, such as media files.
Media can appear and disappear without warning. So first determine the state of the storage, with ''Environment.getExternalStorageState()''.
* MEDIA_MOUNTED - read/write access
* MEDIA_MOUNTED_READ_ONLY
* MEDIA_REMOVED
Requires permission: __WRITE_EXTERNAL_STORAGE__
__Cache files__
* removed when storage is low
* removed when app is uninstalled
''Context.getCacheDir()'' returns absolute path to directory for temporary files.
''Context.getExternalCacheDir()''
__Databases__\\
Small to medium amounts of structured private data.
__SQLite__ is full fledged, implements most of SQL92 and supports ACID transactions (Atomic, Consistent, Isolated, Durable).\\