1

Android: How to call and save userID as a session from SQLite database?

view story
linux-howto

http://stackoverflow.com – In my application, I am trying to figure out how to save userID session and use it until the user closes the app. I know in PHP you can just use the $_SESSION['userID'] = $user_id I want to run a query something like this in Android SQLite SELECT user_id, username, password FROM users **WHERE user_id = $_SESSION[user_id]** This is from php, is there some way I can do this in android? I heard about shared preferences but I am not sure how it works? Sorry, I just started learning about Android programming. I am a bit of a noob. I'll appreciate if you could help me out here. EDIT: this use (HowTos)