In my application i am using ksoap2 library to validate the username and password in android. now i want to know , which is the best and secure way to store commonly use information, so that i can fetch that information in any other screen whithout requesting my webserver using ksoap.
I am from the web background, so i know that in web we store the user information in session or cookies. Session is stroed on the server and cookie is stored on the local machine.
I also read about cookies in android but i dont know how it works and where it is saved.
please let me know how can i do this? If you know any tutorial that can help me to learn this thing then please post it. Thanks in advance.
You can use SharedPreference for storing information, in the form of key value pairs.
to save some info in SharedPreference:
To fetch some value: