TinyDB--Android-Shared-Preferences-Turbo
TinyDB--Android-Shared-Preferences-Turbo copied to clipboard
singleton pattern implemented
Having weakreference doessn't clear it from memory? As application stays long at background? Incase user holds reference and access it via cache?
TinyDB tinyDB = new TinyDB(getApplicationContext());
and later in code accessing after low memory,
tinyDB.getString("username") -> This line will cause nullpointerException