sharedpreferences - Shared preferences are empty on initial set up of Android app -
i have code set shared preferences:
scontext = getapplicationcontext(); configuration = new configurationdata(preferencemanager.getdefaultsharedpreferences(scontext));
but i'm finding mmap , hashmap table inside preferencemanager.getdefaultsharedpreferences(scontext)
empty. why empty? think i've set preference screens , values correctly because working earlier today.
i'm trying think of what's changed... timing issue? need occur before sharedpreferences load?
how initialised? redeployed app emulator not long ago it's fresh install, maybe need populate hashmap?
any ideas welcome, thank you.
Comments
Post a Comment