android - Run asynchronous method in loadInBackground of AsyncTaskLoader -


i run asynchronous server call using asynctaskloader. method loadinbackground() should return result synchronously. returning null , call deliverresult() in callback executed on manually created handlerthread. implementation sending ui null @ first, (when async server operation done) real data. i'm not sure solution.

how implement custom asynctaskloader properly, want load data asynchronous server calls (thus using callbacks)?

thanks help

use join() on manually created handlerthread (without code it's hard give working example)


Comments