开发者

How to optimize the login option in android?

开发者 https://www.devze.com 2022-12-26 19:33 出处:网络
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, d

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号