Hey guys i am currently working on an android app that will allow me to login with a registered user and then post how much he heighs, his collesterol level and so on, trough web services using ksoap, and i don’t know how to keep the user logged on trough a web service like ksoap for then to introduce the values. I don’t have code yet i am just trying to figure out how am i going to do it, because in android i guess you could say i am still taking baby steps. The website where the info will be posted is already created but i need to know how i keep the user logged in so that then i can put his numbers and send trough the web services to the site db the right values to the right user.
Share
Well , you can save
boolean variable in Shared Preferencewhen userlogged in. So when ever you want to send data you need to check the value of thatboolean variable. if its true then you can send data otherwise redirect to login page.When user logged out then you need to set false to that variable in shared preference or clear shared preference.
Example