Sorry, if this is too basic and not entirely Android.. but android is part java too, so I don't have to hop forum. I believe someone else might encounter this too. I'm putting some statement in the Android basically reading an xml file and cast the value into an array to be use as listview but I encounter some problem. To keep thing simple and readable, I simplify it as below:
String[] lv_arr; for(int i=1; i<11; i++){ lv_arr[i] = "hello"; } When I toast the value of lv_arr[i] it is null. If I do this: String[] lv_arr = {"hello", hello", "hello"} + the for loop, I can get the hello value when I do the toast. but [3]-[10] is still null value. 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