I have a problem is the following: I have to take some data from mysql from android, and for that I do it with php, but since I use android 4.0 put through an AsyncTask
. The problem is that I don't know how to return the resulting arraylist
.
Asked
Active
Viewed 523 times
3

Squall
- 59
- 9
-
1read the doc, use onPostExecute ... – njzk2 Dec 11 '12 at 13:04
1 Answers
1
A convenient way is to make an AsyncTask an anonymous class inside your Activity class. Then in onPostExecute method you have access to all fields that belongs to your Activity + final objects from the method you create that AsyncTask in.

Michał Kisiel
- 1,050
- 10
- 12