Oh, no wait, this is an ArrayList. Scratch that, it would be:

list.get(position).get("C")

On Fri, Feb 4, 2011 at 11:13 AM, Mark Murphy <[email protected]> wrote:
> Then it would appear to be:
>
> list[position].get("C")
>
> On Fri, Feb 4, 2011 at 11:08 AM, Mystique <[email protected]> wrote:
>> Hi Master Murphy,
>>
>> The list is a ArraryList<HashMap<String, String>>
>>
>>
>> ArrayList<HashMap<String,String>> list = new
>> ArrayList<HashMap<String,String>>();
>>
>>                        while (eventType != XmlResourceParser.END_DOCUMENT) {
>>                                if (eventType == XmlResourceParser.START_TAG) 
>> {
>>                                        // Get the name of the tag (eg scores 
>> or score)
>>                                        String strName = pullParser.getName();
>>                                        if (strName.equals("tezt")) {
>>                                                HashMap<String,String> map = 
>> new
>> HashMap<String,String>();
>>                                                String A = 
>> pullParser.getAttributeValue(null, "a");
>>                                                map.put("a",A);
>>                                                String B = 
>> pullParser.getAttributeValue(null, "b");
>>                                                map.put("b", B);
>>                                                String c = 
>> pullParser.getAttributeValue(null, "c");
>>                                                map.put("c", C);
>>                                                list.add(map);
>>                                        }
>>                                }
>>                                try {
>>                                                eventType = pullParser.next();
>>                                        } catch (IOException e) {
>>                                                // TODO Auto-generated catch 
>> block
>>                                                e.printStackTrace();
>>                                        }
>>                        }
>>
>> --
>> 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
>>
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in Atlanta: http://bignerdranch.com/classes/android
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Atlanta: http://bignerdranch.com/classes/android

-- 
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

Reply via email to