How i can get response from my AsyncTask class?
i can use onPostExecute method. But is the way that when i call execute() method after this take response?
i tryed to pass result using property of async class, but it doesn't work.
How i can to do it?
Asked
Active
Viewed 1,093 times
1
ToYonos
- 15,591
- 2
- 48
- 65
Boris Kuzevanov
- 1,172
- 1
- 11
- 21
1 Answers
1
If you are using an asynctask that means you need to run something in a seperate thread because it is either a time consuming task or a network operation. That means you must use onPostExecute to do whatever you need to do with the result you get there
tyczj
- 69,495
- 52
- 182
- 280
-
ah ok, so i need to do all my logics in the `onPostExecute`? – Boris Kuzevanov Oct 14 '14 at 13:52