Tuesday, August 28, 2012

Re: [android-developers] AsyncTask - onPostExecute is not called

I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work.

2012/8/28 Harri Smått <harism@gmail.com>

On Aug 28, 2012, at 9:33 PM, anaOliveira <oliveiranarita@gmail.com> wrote:
>             ...
>             s.execute(new String [] {URL+param});
>             …
>
> to call the task. Someone can help me to understand which is the problem?

I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to;

s.execute(URL + param);

might fix it. I'm not too familiar with AsyncTask though…

--
H

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Com os melhores cumprimentos,
Ana Rita Brito Oliveira

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment