Mike,

I've used the

android.net.http.RequestQueue class for large, high latency calls.
This class takes care of running the request in a seperate thread and
allowing you to create a callback to handle the result.

You can find an example of using the RequestQueue at
http://www.anddev.org/doing_http_post_with_android-t492.html

Cheers,

Alan



On Dec 4, 6:54 pm, [EMAIL PROTECTED] wrote:
> So I switch over to using DefaultHttpClient and friends and it...
> behaves the same way.
> (I assume that's what you meant by HTTPComponents aka the apache stuff?)
>
> Does anybody have any direct experience trying to post largish amounts of 
> data?
> It doesn't seem like what I'm doing here is particularly unusual. It
> seems fairly
> linear fwiw. above about 5kb and it starts getting the 5 second ANR's,
> at arounds
> 6kb, it takes about 6 seconds and almost always triggers an ANR.
>
> Mike
>
> On Thu, Dec 4, 2008 at 2:46 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > enervatron wrote:
> >> FWIW, I'm using HttpURLConnection to create and read/write the data,
>
> > Have you tried switching to the HTTPComponents API in Android? It's
> > possible the problem is limited to the implementation of
> > HttpURLConnection, and your problem will go away by using another HTTP API.
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 2009
> >http://www.bignerdranch.com/schedule.shtml
>
>

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to