The download manager was already used for you, to download the content
and had it to you.  You can now open the file, read it, and copy it to
wherever you want.  (Files stored in the download provider are only
temporary.)

On Sep 7, 10:40 pm, otiasj <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Does anyone now how to actually download the file?
>
> Right now when I click on the file of a certain type, my activity
> launches correctly
> and I get the url using getIntent().getData()
> But is there a way to use the download manager? (through a
> contentProvider for example)
>
> Thank you
>
> On 4 sep, 21:29, szeldon <[EMAIL PROTECTED]> wrote:
>
> > Thanks. It really works. Knowledge +1
>
> > On Sep 4, 1:28 pm, Peli <[EMAIL PROTECTED]> wrote:
>
> > > You could write an intent filter in the following way:
>
> > >        <activity android:name=".MyActivity" android:label="@string/
> > > app_name">
> > >             <intent-filter>
> > >                 <action android:name="android.intent.action.VIEW" />
> > >                 <category
> > > android:name="android.intent.category.DEFAULT" />
> > >                 <category
> > > android:name="android.intent.category.BROWSABLE" />
> > >                 <data android:scheme="http" />
> > >                 <data android:mimeType="?????"/>
> > >            </intent-filter>
> > >         </activity>
>
> > > Here you have to replace "?????" by the mime-type you intend to
> > > handle. Then your activity will be called by thebrowser, and you can
> > > use getIntent() 
> > > (http://code.google.com/android/reference/android/app/Activity.html#ge...()
> > > ) to get more information about the intent.
>
> > > Peliwww.openintents.org
>
> > > On Sep 4, 11:12 am, szeldon <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > Currently I'm working on a program that needs to download files using
> > > > defaultbrowser, saving them somewhere (it may be a mobile/emulator or
> > > > SD card on one of them) and then using my program with them. It would
> > > > be great if my program could react on specific filetype opened by a
> > > >browser, but if that's not possible, I'd at least like save to them.
> > > > Opening could be done in my application.
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to