So I learned the basics of android but I never understood this part.
I know when using websites, authentications are made along side sessions
and cookies
. But what about android?
When an authentication is made, a token is generated, right? where does this token belongs in android application world? is it stored in AccountManager
? should it be stored on SharedPreferences
? I also saw something called OAuth2
but didn't get what that is.
I'm sorry if my question is stupid but it is driving me nuts in a long time.
if you have a good tutorial for these kinds of web services, where they teach real world coding examples, please let me know.