I have app where user will login using facebook and fill the registration page. If later user wants to update the details, he can go to another activity Userupdate. So, my question is how can I show the details automatically in userupdate activity which he already filled in registration form like name, DOB or mobile number??
Asked
Active
Viewed 52 times
-2
-
3I'm voting to close this question as off-topic because this is a requirements specification, not a question. See: [Why is "Can someone help me?" not an actual question?](http://meta.stackoverflow.com/q/284236) – Joe C Apr 20 '17 at 06:30
-
I am trying to pass user info from one to another activity.. – Ankit Apr 20 '17 at 06:41
-
If so, check it out: http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android-application – miljon Apr 20 '17 at 06:43
3 Answers
1
You can use
1)Shared preferences to store your user details,you can retrieve it and show
2)SQLITE database for android to store the details,you can retrieve it and show

Pavan kumar
- 61
- 3
-
bro can you please help me with codes?? or any article? it will be really helpful. thank you! – Ankit Apr 20 '17 at 06:52
-
[link](http://www.vogella.com/tutorials/AndroidSQLite/article.html) [link](https://www.tutorialspoint.com/android/android_sqlite_database.htm) try this links... Understand how to use them – Pavan kumar Apr 20 '17 at 06:55
0
you most save user details. u can use below links for how to save.
1: SqliteDatabase: http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/
2: SharedPreferences: https://www.tutorialspoint.com/android/android_shared_preferences.htm

mGol
- 106
- 1
- 1
- 9
-
I already saved.. just want to show it on another activity in edittext..how do I do it? – Ankit Apr 20 '17 at 08:13
0
1. When user
first fill registration page, then store user informations into local sqlite
datebase or your online server
database.
2. If user
wants to update
information, start UserupdateActivity
and in onResume()
method get the user information data
from database
and finally update the view
.
Hope this will help to understand.

Ferdous Ahamed
- 21,438
- 5
- 52
- 61
-
yes, the user info is saved in our db. however, i need codes to get the data from db and show it in userupdateactivity in edittext. please help me with the codes.. – Ankit Apr 20 '17 at 08:07
-