It may help to look at the following:
android.os.Environment.getDownloadCacheDirectory()

http://code.google.com/android/reference/android/os/Environment.html

This should return the directory where you can find the downloaded
files.

Peli

On 8 Sep., 12:09, otiasj <[EMAIL PROTECTED]> wrote:
> I am sorry I don't understand...
> how can I access thedownloadprovider?
> the data in the intent is an url like "http://distantserver/
> myfile.arg" (and there is no extras)
> to access a contentProvider I would need a local uri right?
>
> Thank you for your time!
>
> On 8 sep, 18:05, hackbod <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thedownloadmanager was already used for you, todownloadthe content
> > and had it to you.  You can now open the file, read it, and copy it to
> > wherever you want.  (Files stored in thedownloadprovider are only
> > temporary.)
>
> > On Sep 7, 10:40 pm, otiasj <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > Does anyone now how to actuallydownloadthe 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 thedownloadmanager? (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 todownloadfiles 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.- Zitierten Text ausblenden 
> > > > > > -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to