0

For Loop issue and JSON Parsing

view story
linux-howto

http://stackoverflow.com – As you can see while parsing with JSON I am using for loop to retrive array. Instead of this using for loop and giving dynamic value to jArray.getJSONObject(k) such as jArray.getJSONObject(MY_VAL) Android can not handle this value from MySQL. For example there 100 rows in a table, If I don't use for loop I can only reach to 1st row with value of MY_VAL = 1 but if variable's value changes I can not reach to row, for example MY_VAL = 86 can not reach to row 86 I mean,deleting for loop and replacing jArray.getJSONObject(k) to jArray.getJSONObject(MY_VAL) and giving specific value which comes f (HowTos)