so i have a person class which has name and profilepic as data
in my android app i wanna query my userinfo … store it in local datastore
then next time i load my profile i check the localdatastore if available … if not i query from the internet then save to local datastore
i want my code to look like
if ( data in localdatastore available ) load profile // setting textview and imageview with that data
else query from server
save to localdatastore
load profile
thanks for help
i read the local datastore documentation but didn’t understand it well