How to set the data from one activity to another activity?

Put your problem here if it does not fit any of the other categories.

How to set the data from one activity to another activity?

Postby NeoLiu » Fri Feb 15, 2008 11:58 am

Hi guys

i have a problem about set data

for example:

1. A activity start the B activity used startActivity()

2. Used this.finish(); in the B activity and back to A activity.

How to do can i set the string to the A activity from B activity :) and not use startActivity()

because if use startActivity(), the A activity will onCreate() again , i want back to A activity onResume(). method
NeoLiu
Junior Developer
Junior Developer
 
Posts: 17
Joined: Mon Jan 07, 2008 3:27 am

Top

Postby res » Fri Feb 15, 2008 4:27 pm

plusminus wrote a tiny tut on how to return a value from a sub activity, have a look around the novice tutorials section.
res
Senior Developer
Senior Developer
 
Posts: 146
Joined: Tue Nov 20, 2007 8:14 pm
Location: United States

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests