On Tue, Jul 5, 2011 at 12:39 PM, Teodor Ciuraru < [email protected]> wrote:
> Hello developers! > Hello! > I'm kind of got familiar with the Android developing and Java, but I have a > problem. > It's OK, we've all got problems. You can tell us. We won't judge you. > Working on an application I need have a page with a Spinner, 2 buttons(Add > and Clear") and 1 EditText. I want that user to be able to populate the > Spinner by entering an item in the EditText and when the Add button is > pressed that word to become a Spinner item. Also I want to when the user > presses Clear to eliminate all the items in the Spinner. > OK - all of that is pretty straightforward so far. > I've searched the Internet for > a solution but I didn't really find a corect and helpful solution. > I see. Unfortunately, however great the internets may be, it rarely contains the perfect solution for a given developer's exact problem. Have you tried, say, attempting to do the the work yourself? Have you tried reading the documentation for each of the classes you stated and looked at the tutorials? > I was thinking to save the EditText content in an String (which I > named "items") and then pass it to the Spinner with an Array Adapter, but > it doesn't really works. > That sounds like a fine idea. Would you like to elaborate on what "doesn't really works" means? If you actually want help you have to explain to the people what problem you're having, as clearly as possible. > I will be very thankful if someone can write the code with no kind > o explanations. > I will be very thankful if someone can send me a pony. Unfortunately, it's not liable to happen. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

