android - How to identify values changed in sharedpreferences? -


here have 1 doubt dumb question struggling having 1 login activity , list activity in login activity communicate remote server , json response server example userid i'l save in sharedpreference , pass value in listactivity detail list till fine doubt when new user login need send null url in listactivity next time il time response based on response altered how can check value in sharedprefrence whether first time or logged in !!

just add 1 more entry in shared preference key. on oncreate of mainactivity check key, if false, update true.

so, way, if false first time , if true, logged in.

please follow steps in below link

detect first run


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -