Spring security for android app -
i'm trying consume rest services android. i want username , password entered once. system can work without having reapply username , password. i not know right way this. save password on phone seems bit insecure, maybe it's paranoia. applications facebook, store password in phone? what i'm trying generate token, store token on phone, , send token in header in each request. not know if right solution. can not find how without token lose session. i have read oauth2, have not got example of small application demonstrates use, not of facebook, google, twitter. i used spring server communicate android app.