asynchronous - What is AsyncCallBack in Android? -


can give me clear description of asynccallback? exist in latest android version? because directed asynctask when search asynccallback.... these both same? have example?

thanks in advance.

there no class named asynccallback in android. think looking asynctask way run piece of code on thread ui won't blocked, , receive it's results on ui thread. example, want talk server on internet in response user clicking in ui, receive result server, , update ui. asynctask makes doing easy compared doing regular threading code because threading lifecycle , communication ui thread handled you. bonus there support canceling background task, have write code handle when cancel called. doesn't without work on side.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -