tags:

views:

66

answers:

1

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 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

A: 

You could store the token on the device in either a SQLite db or in a preference (http://stackoverflow.com/questions/552070/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.

Adam