> You mean, something like this:
>
> Map<String, String> myFields = new HashMap<String, String>();
> myFields.put("form_field_1", "some value");
> myFields.put("form_field_2", "some other value");
> ...
>
> Yep, that would work great. I'm still a little fuzzy on how I'd loop
> through the fields on the other end, though (please be kind - this is
> the first Java I've worked on in years :) )
>
> Mark

OK, I figured it out. It's just:

for (String name : myFields.keySet()) {
        String myKey = name;
        String myVal = myFields.get(name);
}

Thanks for brainstorming with me :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to