Android equivalent to .Net WebClient.uploadFileAsync

313 Views Asked by At

I am looking to send a file on android asyncronously. Using c#, I would use WebClient.uploadFileAsync. I found the Java equivelent... AsyncHttpClient. However, I find this cannot be used in Android. I want to be able to get the progress of the upload. More importantly though I dont want to load the whole file in memory; the files are large images and they have trouble uploading all at once.

So my question is simple, is there an Android alternative to .Net's WebClient.uploadFileAsnyc?

1

There are 1 best solutions below

1
On BEST ANSWER

In Android 2.3 and higher, use DownloadManager. In Android 2.2 or lower, you would need to roll it more yourself using HttpClient or something.