I would like to know please how may I store an http session cookie and make it accessible from the rest of my activites other than the LoginActivtiy ?
Asked
Active
Viewed 44 times
0
-
You'd store it in a Singleton somewhere. Or pass it between every activity, but generally the singleton is more convenient. – Gabe Sechan Feb 13 '17 at 17:41
-
Use SharedPreferences : https://developer.android.com/reference/android/content/SharedPreferences.html – Mouad EL Fakir Feb 13 '17 at 17:41
-
Thanks guys for your tips – User_X220 Feb 14 '17 at 19:37