HI,
I want to create Login option in my application , so that once a person gets login that device creates token which is saved over server. From next time whenever he/she operates the application, directly goes to next label by checking that token keyvalue pair 开发者_JAVA百科over server.IT requires login page only when that keyvalue pair is deleted from the server.
Can anyone help me from this.I will be very grateful to you. Looking for reply.
Regards, Praween
You could store the token on the device in either a SQLite db or in a preference (Android - How Do I Set A Preference In Code). When your main login page is created, try to retrieve that token and if it exists, continue onto the next page passing the retrieved token.
精彩评论