android - Grab return value of asynctask? -


is possible grab return value of doinbackground()-method?

jsonarray response = new supportfunctions.executeurlwithresponse().execute(url); 

it tells me:

description resource    path    location    type type mismatch: cannot convert asynctask<string,void,jsonarray> jsonarray          contactfunctions.java /buddycheck/src/com/pthuermer/buddycheck    line 138    java problem 

something this?

is possible grab return value of doinbackground()-method?

not in manner trying.

there get() method can call block current thread , wait asynchronous work complete. not want -- want work done asynchronously (otherwise, why have asynctask?).

move code needs jsonarray response either onpostexecute() or other method executed onpostexecute().


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -