Catching clicks on xml files in the browser

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


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



--~--~---------~--~----~------------~-------~--~----~



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?

Rohit



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. best performing xml parser for android?

Hi

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 r.java

Is it possible to change the path of r.java? My application has shared
source folders with a J2ME app, r.java 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?