pass parameters between twoo views

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

pass parameters between twoo views

Postby Aha » Thu Feb 05, 2009 10:31 am

Hello everyone

is it possible to pass parameters between twoo views without finsh one of them????

I trying to use starActivityForResult but this meto dont retuns the Bundle if you dont finish the subActivity.

Once Poster
Once Poster
Posts: 1
Joined: Thu Feb 05, 2009 9:02 am


Postby Rahul » Fri Feb 06, 2009 11:13 am

May be you can declare the value in screen1 as a protected String on the top of your program
and you can call the same anywhere else just by calling the name of the variable you have declared
Experienced Developer
Experienced Developer
Posts: 89
Joined: Wed Oct 01, 2008 11:16 am

Postby Andy » Fri Feb 06, 2009 11:33 am

U can make use of Bundle,add the attribute that u want to the calling Activities Bundle and get the same Bundle using the Intent of the calling Activity in the called View.
A n D r O i D
Junior Developer
Junior Developer
Posts: 13
Joined: Fri Dec 19, 2008 2:53 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests