I guess adding an intent filter just allows my activity to start up if someone starts a new intent with that data scheme and mimetype. I guess it isn't meant for catching clicks in the browser. I guess the code in the browser app needs to be changed to be able to start off a new intent when a user clicks on an xml file - too much work? Does anyone have any pointers as to where to begin if I wanted to do that?
Rohit On Mar 17, 2:33 pm, Rohit <[email protected]> wrote: > Hi, > I am trying to intercept xml links that are clicked in the > android web browser. I want my activity to handle these xml files, > however I cannot seem to get this to work. Whenever I click on the xml > file in the browser it just displays the xml file. Here is the entry > that I have in my AndroidManifest.xml. Is this enough or do I need to > do something more? > > <activity > android:name="handleXML" > android:theme="@android:style/Theme.Dialog" > android:screenOrientation="portrait" > > > <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:scheme="https" /> > <data android:mimeType="application/xml"/> > <data android:mimeType="text/xml"/> > </intent-filter> > </activity> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

