Catching clicks on xml files in the browser

by Rohit » Wed, 18 Mar 2009 05:33:45 GMT

Sponsored Links
      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?

                        <action android:name="android.intent.action.VIEW" />
android:name="android.intent.category.DEFAULT" />
android:name="android.intent.category.BROWSABLE" /
                        <data android:scheme="http" />
                        <data android:scheme="https" />
                        <data android:mimeType="application/xml"/>
                        <data android:mimeType="text/xml"/>


Catching clicks on xml files in the browser

by Rohit » Thu, 19 Mar 2009 01:19:00 GMT

 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?



Sponsored Links

Other Threads

1. best performing xml parser for android?


I am just wondering what is the best performing xml parser (speed
wise) for android (or for java in general). Does anyone know?

2. changing path

Is it possible to change the path of My application has shared
source folders with a J2ME app, is automatically placed in the
first folder in the project which is one of the shared folders, i
would like it to be in one of the android specific folders


3. T-Mobile will be restricting voice over internet protocol (VoIP) applications.

4. Obfuscation in eclipse for Android?

5. Internet proxy setting in R1.0

6. OTA Implementation in SDK?

7. Bug with Ellipsize in ListView?