Thursday, September 30, 2010

[android-developers] Setting/Passing values

How do you set/pass values from one screen (activity) to another?

What I have in the R.layout.main view labeled Calculator contains the
code for doing calculations.
The main.xml contains the layout (view) of the main screen.

I have created an options menu which has another screen which shows
you setup (R.layout.setup).
The dialogsetup.xml contains the layout (view) for it.

When you press the menu button, you get the options menu. If you
select "Setup", then
it will display the setup screen. Now what I need to do is take the
values from the setup screen (radio button and text values)
and place them in the main screen so that when you exit the setup
screen and go back to the main
screen, you can take those values and use them in your main code.

Any coding would be appreciated.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate