Unfortunately, the DownloadProvider is not currently available for non-system applications to use, and that's unlikely to change in the foreseeable future. Even more unfortunately, the current implementation of the DownloadProvider uses private APIs that prevent it from being recompiled on top of the SDK, which means that you can't re-use it "as is" in your application; high-quality contributions in that direction are likely to be accepted if various efforts are synchronized in advance.
The manifest for the package installer shows you how you can invoke it: it responds to ACTION_VIEW / CATEGORY_DEFAULT on file: and content: URIs for the APK MIME type "application/vnd.android.package-archive". Full details here http://android.git.kernel.org/?p=platform/packages/apps/PackageInstaller.git;a=blob;f=AndroidManifest.xml JBQ On Sat, Nov 29, 2008 at 6:31 AM, Xiaoliang Ding <[EMAIL PROTECTED]> wrote: > Hi, smart guys > > I want to implement a application whose one of requirements is download a > package and install it. What i want to know is can i use DownloadProvider > and PackageInstaller in my application? How can i use them ? > > Thanks > Ding > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

