I'm don't know how you use 'ServiceController', but note that for each
instance of a ServiceController, you can call 'executeService()' only *once*.
This is because it has an AsyncTask (your WebService) as a field, which is
constructed in the ServiceController's constructor. And an AsyncTask's
Maybe it is doing:
*Connection: keep-alive*
and you want it to do:
*Connection: close*
Put a breakpoint here:
notifyListener(Chegou aqui);
Then put one here:
notifyListener(Ja tenho qualquer coisa);
Make sure both breakpoints get hit.
Also, please notice that your observers will be
Also, please notice that your observers will be getting notified on a
thread other than the UI thread with your notifyListener calls in
doInBackground. You may not want that.
As long as the observers run their code with post() or runOnUiThread() then
there won't be a problem
Thanks,
Justin
This is one of her observers:
public void onChange(String s) {
((MainActivity) act).getTextView().setText(s);
}
On Wednesday, August 29, 2012 9:22:31 AM UTC-5, MagouyaWare wrote:
Also, please notice that your observers will be getting notified on a
thread other than the UI thread with your
My problem iis in the call of Ask Task. I think.. I have update my code
since that post. I have posted another question and I think It's better to
understand the problem.
But thnks.. If you want to take a look.. AsyncTask - onPostExecute is not
called
Quarta-feira, 29 de Agosto de 2012 15:47:28
5 matches
Mail list logo