1
I would like to know how best to use an application with Login (in relation to activities).
I’m using Mainactivity with a Navigation Drawer, and when opening the application it checks for credentials in a sqlite3 database (if the login was done) and then, if it is necessary to login, runs another Login Activity leaving the first one on hold.
When logging in, it ends with finish()
acitvity of Login and back to Main. In the Login method Activity onBackPressioned()
I got all the activities finished and the program came out.
Finally, I just need to understand how to update Mainactivity data after logging in (i.e., a Mainactivity textfield that must have its value changed, e.g.).
I do not know if it is the best way, I tried to search the internet but I did not find so many examples.
I get it. I was thinking that it was in Loginactivity that I should update the textFields but in the onActivityResult method I can do this, right?
– Killer
If the textFields are from Mainactivity yes.
– ramaral