• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps JAVA to XML

Nybras

Well-Known Member
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.
 
Back
Top Bottom