Zvi
Zvi

Reputation: 63

receiving an intent when completing a browser download

I'm writing a software update application that (among other stuff) does the following:

When I find an image I want to download, I'm passing an ACTION_VIEW intent to the Browser application. The browser starts the download, and when it completes, I see the download complete message in the notification bar.

now I am facing the following problem: I would like to receive an intent when the download is complete.

Can anyone help?

Upvotes: 3

Views: 773

Answers (2)

Macarse
Macarse

Reputation: 93173

You can check the following question Android browser download manager. Basically you will need to use HttpClient as MarvinLabs told you.

If you will be android 2.3 only compatible, which I doubt, you can use DownloadManager.

Upvotes: 0

Vincent Mimoun-Prat
Vincent Mimoun-Prat

Reputation: 28561

Why don't you download the image yourself directly using HttpClient for example ?

Upvotes: 1

Related Questions