Skip to content
Advertisement

Android – Keep user logged in

I’m trying to make a login with PHP and MySQLi for Android. What I don’t understand is how to keep the user logged in? I saw a simple tutorial where someone used SQLite to safe information but I’m not aware if that is really secure way. How should I save the user information to keep the users logged in?

Thank you.

Advertisement

Answer

Use the SharedPreferences in android

when your loggedin store the data using

JavaScript

retrieves the data of the key

JavaScript

clear the data when logout

JavaScript

Refer this Link for More

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement