I signed in into the app with some credentials and that user has some data that is downloaded through web service. The problem is that when I sign in using some other credentials after signing out(not exiting the application), sometimes I get the data of previous user. Can anyone tell what could be the problem. What can I do when I log out to delete the data related to previous user.
Share
If your data is stored in an ArrayList then when one user ‘signed out’ you can call the clear() method to clear your memory.
Similarly with HashMap it also has the clear() method.