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,095 times
1

ToYonos
- 16,469
- 2
- 54
- 70

Boris Kuzevanov
- 1,232
- 1
- 12
- 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
- 71,600
- 54
- 194
- 296
-
ah ok, so i need to do all my logics in the `onPostExecute`? – Boris Kuzevanov Oct 14 '14 at 13:52