The download code that is used by the Android Market (and a few other
system apps) is here:
http://android.git.kernel.org/?p=platform/packages/providers/DownloadProvider.git;a=summary=

Its primary interface to initiate downloads actually uses a content
provider, not intents (though I have thought about adding an
intent-based interface). For a variety of reasons, it can only be used
for system applications (and it would take a fair bit of effort to fix
that, though I'd like to see it eventually happen).

Unfortunately, the code as it is doesn't compile with the SDK, because
it uses APIs that aren't public at this point. You can still use it
for inspiration, and of someone wants to make it SDK-compilable,
please hop over to the android-framework mailing list and we'll
discuss the details.

JBQ (who wrote the download provider)

On Tue, Nov 25, 2008 at 9:25 AM, lummie <[EMAIL PROTECTED]> wrote:
>
> I was wondering if there is a reusable Android Download service, e.g.
> like the one used by Android Market to download a file to a certain
> folder. e.g. You would be able to create a download intent, passing
> extras for the sourceUrl, destinationFolder and an intent to be called
> when the file has been downloaded.
>
> I'm guessing I can (try) and implement my own service to do this, but
> it would be nice if there was a standard download service that
> everyone could use.
>
> Regards
>
> lummie
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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