Reputation: 6749
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?
Upvotes: 0
Views: 303
Reputation: 1007359
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.
Upvotes: 1