I am doing a project which is based on storing the employee details, like name, id, log in time and log out time. So I created a database to store the details of the employee, my problem is that i am getting the values dynamically from the user in different screens, i have problem with storing the values into the database. now am passing all the values into one screen and storing them in that class, even though i am not getting the log out time of the employee. Now am using the below code to add the values into database.
db.addDetails(new Contact(client_id, empn, timein, "6.30PM"));
Is there any way to store the values into database screen by screen for the same user?
Thanks in advance.
try like this..
now put this in your first screen.. you will get the id of the entry in database.. now pass this id to next activities using intents..
then in next activity store time in value like this into database..and all other values can be updated in similar way in respective activities.. on passing the id from first activity