TinyDB--Android-Shared-Preferences-Turbo icon indicating copy to clipboard operation
TinyDB--Android-Shared-Preferences-Turbo copied to clipboard

singleton pattern implemented

Open alisherafat01 opened this issue 8 years ago • 1 comments

alisherafat01 avatar Dec 11 '16 08:12 alisherafat01

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

Manikkumar1988 avatar Jul 31 '17 10:07 Manikkumar1988