Monday 15 September 2014

sqlite - What is best way to store user data in Android -


I want to be able to store a user's ID in my Android app so whenever the user accesses my app , I can retrieve the information I recognize the user and creates a custom page for the user. I do this with cookies in JavaScript on my website but what is the recommended way in Android? SQLite or something else?

There are several ways, shared prefaces can be what you want for it, If you are going to store other data, you might consider using SQLite DB.

The shared prefix ("key", value) is added so that they can be suitable for this type of situation

No comments:

Post a Comment