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

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -