the URL Connection has the same problem.. I will try this,,
2012/8/30 Andrea Pietroni :
> also, try AndroidHttpClient.newInstance() instead of a plain
> DefaultHttpClient (this try could be easier to do before HttpURLConection).
>
> --
> You received this message because you are subscribed to the
I will see de documentation that you give me.. and no.. we the
HttpClient dosen't have any colse method. :S
2012/8/30 Andrea Pietroni :
> if you're not going to support versions before Gingerbread, try switching to
> HttpURLConnection, see this:
> http://android-developers.blogspot.it/2011/09/and
also, try AndroidHttpClient.newInstance() instead of a plain DefaultHttpClient
(this try could be easier to do before HttpURLConection).
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developer
if you're not going to support versions before Gingerbread, try switching to
HttpURLConnection, see this:
http://android-developers.blogspot.it/2011/09/androids-http-clients.html
I'm not experienced with networking, but does HttpClient need to be closed some
way? could that be the problem?
--
Something that I repared.. my onPostExecute returns when I finish my
app.. it is normal???
2012/8/30 Ana Rita Brito Oliveira :
> Yes.. I made it.. I made one demoProject with this AsyncTask and it
> worked.. :S And I copied the code into my project
>
>
> 2012/8/30 Kostya Vasilyev
>>
>> If you'
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
> 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
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
Yes.. I ran it on debugger.. I can access the web service on debug but the
messages were only from the doInbackground() You run my code yesterday and
it worked?
2012/8/29 Larry Meadors
> Have you run the app in a debugger? Does it get all the way through
> the doInBackground method?
>
> Does the
Have you run the app in a debugger? Does it get all the way through
the doInBackground method?
Does the Log.d("RESPOSTA do web service", response); line get logged?
I ran into this yesterday. :-/
Larry
--
You received this message because you are subscribed to the Google
Groups "Android Develo
I have updated my code!
My web Service Class
public class WebService {
private ArrayList listeners;
private static String res;
public WebService() {
listeners = new ArrayList();
}
public void addListener(SimpleObserver obs) {
listeners.add(obs);
}
public void removeListener(SimpleObserver obs
10 matches
Mail list logo