So my askTask is Ok! Calin thought maybe the problem it is timeout.. I'm
trying to do debug and wait to se what happen.

2012/8/29 Andrea Pietroni <[email protected]>

> Yesterday I tried running the asynctask in onCreate in an activity, to
> test it. I used a URL from web that I knew was available. Actually I always
> got UnknownHostException and I don't know why, however onPostExecute got
> called correctly, except the first time, when it looked like it had to wait
> for some timeout before printing the postExecute log (hence executing it, I
> guess).
>
> The asynctask seems to get called correctly indeed. (the use of results
> has some problems as you noticed instead).
>
> Il giorno mercoledì 29 agosto 2012 15:49:46 UTC+2, Calin Perebiceanu ha
> scritto:
>
>> I'm not sure what happens there, but I'm pretty sure onPostExecute is
>> called, but not when you expect it.
>> In my opinion dao.ActiveAccount(pass.**getText().toString(),
>> email.getText().toString())) will always return false, because
>> executeService will return before onPostExecute will be
>> fired(it's asynchronous).
>>
>>
>> On Wednesday, 29 August 2012 16:41:41 UTC+3, anaOliveira wrote:
>>>
>>> As you can see in my post I don't call any more thread one this service.
>>> :S One think... My activity is called from other activity but I think is
>>> not a problem right?
>>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to