Thanks for your reply, Dianne!

I'll register my Activity like you specified.

But how will I be able to access the downloaded file. Will it be
downloaded to a temp location and have global read permission set on
it? How will the file's path be passed to me using the Intent sent by
the browser?

Many thanks,

Amos

On Mar 26, 7:02 pm, hackbod <[EMAIL PROTECTED]> wrote:
> All of Android's file mappings are based on MIME types.  As long as
> your web server is returning the correct MIME type, you can implement
> an activity that says it knows how to VIEW that MIME type and it will
> be launched when the user clicks on such a file after downloading it.
>
> On Mar 26, 3:34 am,Amos<[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I would like to implement the following scenario:
>
> > When a user browses a web page withBrowserand clicks a link with a
> > special file extension (which is unique to my application, such as
> > "www.mysite.com/somefile.xxx"), that file will be downloaded and then
> > my application launched to view the downloaded file.
>
> > I'd like thebrowserto handle the file download if possible, and when
> > it's done start one of my activities and provide the  file to it.
>
> > This is desktop behavior and I'm not sure it conforms to the Android
> > intent/content provider way of doing things - but this is what I'd
> > like to happen.
>
> > Any ideas or pointers?
>
> > Thanks in advance,
>
> >Amos
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to