Hi
I'm a noobie at Android and am currently working my way through a load of tutorials so forgive me if this is a bit basic..
I know that I can pass data to an activity by doing the Intent.PutExtra() and I can read this from the called activity by Intent.GetStringExtra() etc, but what do you do if you want to pass a variable to Activity_2 from Activity_1, have Activity_2 modify its value and then pass it back to Activity_1?
So for example if it's an address book app, I have a listview of all my addresses but I want a button that passes the list to another activity where a new address can be added.
Where about in the code from activity_1 would I read the intent.GetStringExtra?
Thanks
Samop
I'm a noobie at Android and am currently working my way through a load of tutorials so forgive me if this is a bit basic..
I know that I can pass data to an activity by doing the Intent.PutExtra() and I can read this from the called activity by Intent.GetStringExtra() etc, but what do you do if you want to pass a variable to Activity_2 from Activity_1, have Activity_2 modify its value and then pass it back to Activity_1?
So for example if it's an address book app, I have a listview of all my addresses but I want a button that passes the list to another activity where a new address can be added.
Where about in the code from activity_1 would I read the intent.GetStringExtra?
Thanks
Samop