[android-developers] Re: loading xml items to an array not working... what is wrong with my code?

2010-12-24 Thread Mystique
I think it is something to do with this.
---
if (strName.equals("group")) {
   String Name = groups.getAttributeValue(null, "name");
   lv_arrr[eventType] = Name;
---
When I check, Name did contain the correct value.
I remember array starts with [0] so I create another counter call i
with i++ to replace lv_arrr[i] = Name;
Somehow lv_arrr still contain null. Why is that so?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: loading xml items to an array not working... what is wrong with my code?

2010-12-24 Thread TreKing
On Fri, Dec 24, 2010 at 4:44 AM, Mystique  wrote:

> Somehow lv_arrr still contain null. Why is that so?


I don't know, but you can figure this out quite easily by stepping through
your debugger or printing out the value of "Name" and the corresponding
group in each iteration to see at what point you get a null.

-
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en