In the OnTaskCompleted
before
jarray = utils.getJarrayFromString(result);
add a log entry with
Log.i(DEBUG,result);
I am suspecting that you are getting a null value as result
if(result!="")
does not ensure a valid value.
Cheers
1
solved JSON Parsing Error – String cannot be converted to JSONArray