First all, apologize for my english.
I have activity1, activity2 and activity3...
In activity1 and activity2 i have EditText to ask some info to user.
A button in activity1, save editetext info in variables, and then i make startactivity(activity2)
Activity2 has more edittext, and a button... when i press this button i save this info in variables, and make startactivity(activity3)
I do know how to finish the current activity, with activity.finish, but my question is:
How can from inside activity3, finish activity 1 and 2?
Activity3 has a confirmation button... i save all info to database.. and want user go to FIRST screen, buuuut when i finish activity3 (activity.finish) obviusly the user go to activivity2
Hope you understand me.
Thanks.
I have activity1, activity2 and activity3...
In activity1 and activity2 i have EditText to ask some info to user.
A button in activity1, save editetext info in variables, and then i make startactivity(activity2)
Activity2 has more edittext, and a button... when i press this button i save this info in variables, and make startactivity(activity3)
I do know how to finish the current activity, with activity.finish, but my question is:
How can from inside activity3, finish activity 1 and 2?
Activity3 has a confirmation button... i save all info to database.. and want user go to FIRST screen, buuuut when i finish activity3 (activity.finish) obviusly the user go to activivity2
Hope you understand me.
Thanks.