2

I have recently developed an iPhone application which involves media (Images, Audio and video) sync. operation with my web server.

I have used ASIHTTPRequest in my iOS application for simultaneous uploading and downloading and do some work in every request finished and failed methods as ASIHTTPRequest provides these methods.

- (void)requestFinished:(ASIHTTPRequest *)request
- (void)requestFailed:(ASIHTTPRequest *)request

Is there any similar library for android. That allow me to upload/download in queue and update me after every successful or failure of request?

laxonline
  • 2,657
  • 1
  • 20
  • 37
Irfan DANISH
  • 8,349
  • 12
  • 42
  • 67

2 Answers2

1

For downloads part, DownloadManager can be useful . Alas!, no such thing for uploads (yet). To have IOS like functionality, you'd need to write a custom background service.

S.D.
  • 29,290
  • 3
  • 79
  • 130
  • Its strange, there is no library for both operations so far – Irfan DANISH Jan 14 '13 at 09:57
  • @IrfanDANISH I too wonder, given its all java, the popularity, and n number of frameworks around, no one had yet extended API in meaningful ways. But I see an interesting library project. – S.D. Jan 14 '13 at 10:02
  • @IrfanDANISH just thinking of writing one. – S.D. Jan 14 '13 at 10:18
1

In android you can use the Download Manager. Here is sample project or you can use the asynchronous class
Please refer the below link

Download a file with Android, and showing the progress in a ProgressDialog

Community
  • 1
  • 1
Priya
  • 1,763
  • 1
  • 12
  • 11