Go Back   Android Forums > Android Development > Application Development
Application Development Dev Lounge for the Coder Folks
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old August 5th, 2012, 07:03 AM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 125
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default JAVA to XML

Hi guys.

New to Android Development and was wondering if there was some way of taking the users input to create an activity? For example say the user is going through the process of setting up a profile of themself. One of the questions is "how many pets do you have?". The user inputs "4" and then clicks the 'Next' button (which opens the next activity).

How would I take the users input of "4" to create four editText objects in the next activity so that the user can now input the name's of his/her's pets?

I'm an ok programmer so you don't need to go into detail I just don't know how I would access this variable to create the four editText objects. From what I've found you can't add strings to the resources at runtime.

Nybras is offline  
Reply With Quote
Sponsors
Old August 5th, 2012, 09:26 AM   #2 (permalink)
Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 125
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

Don't bother replying, I've solved my problem. Just need to create a dynamic layout in JAVA
Nybras is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:02 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.