I parse some xml and get an String[][]. And then using this I publish progress to protected void onProgressUpdate(String... values) {
But I can't send the array to this method. And am having trouble getting the values out of this. Here is the array i have.
String[][] myArray = [{"there", "there2", "there3", "there4"},
{"here","here2","here3"},{"hi","hi2"},
{"blah","blah2","blah3"}];
and then I do this:
publishProgress(dayMeals + "");
but I have to concatenate it with a string to send it and then when I try to get the values out of value like this I can't.
@Override
protected void onProgressUpdate(String... values) {
if (values.length == 0) {
Log.i(TAG, "no data");
}
else {
Log.i(TAG, values + "");
String value0 = values[0];
Log.i(TAG, value0);
}
}
And then the log returns this
[Ljava.lang.String;@534cba00
[[Ljava.lang.String;@534db6c0
how can I get the vaules out that of the myArray?
Thanks for the help :)
No comments:
Post a Comment