I am making an android app. I have a User class which has many getters and setters. I have many activities in my app and by just creating a single object of User class I want to access that object from many activities. How can I do that?
Thank you for the answer. But the scenario is like this. I have a database and in there is a table user which contains all the information about the user registration like name,age, password, emailID, last logged in etc. Each of these fields are there in the user class. Now my first activity is for accepting the terms and conditions page. If the user accepts it then I want to update that particular column in the database table. Then in next activity user registration will happen. Then I need to store that data in the database table. So in the same row all that data has to be inserted in the database. How will this be done