I don't think you can do this because the initial URL interception happens when the browser is processing the URI, before it has a MIME type. If it doesn't find an external activity to handle the raw URI, it will at that point see if it can handle it internally. At that point either it will do so, or only if it can't handle it internally will it start retrieving it (at which point it finds out its MIME type) and if there is an activity that contains that MIME type it will hand it off.
On Wed, Jun 17, 2009 at 10:03 PM, manoj <[email protected]> wrote: > > Hi, > > I am trying to launch my application when some one clicks any .xml > file or .rss file from device browser or mail. > > But, my app is not launched when I type an xml link (for example : > http://remotesite/xml/myXml.xml), instead, it is opened in the default > browser as a text file. > > I have put the intent filter as shown below: > > <intent-filter> > <action android:name="android.intent.action.MAIN"></action> > <category android:name="android.intent.category.LAUNCHER"></ > category> > <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="application/xml"/> > <data android:mimeType="application/rss+xml"/> > <data android:mimeType="application/atom+xml"/> > <data android:mimeType="application/*"/> > <data android:mimeType="text/*"/> > > </intent-filter> > > Still no output. > > Basically, my requirement is to show an alert from my app if some one > clicks any .xml/.rss file from browser or mail. > > Can any one please help me to solve this. > > Thanks, > Manoj. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

