Your intent needs to match the base Content-Type returned in the HTTP header. You can peek to figure out what mimetype your server is reporting:
$ curl -I http://localhost/news.xml.post.xml HTTP/1.1 200 OK Content-Type: application/xml ... $ curl -I http://feeds.feedburner.com/blogspot/hsDu HTTP/1.1 200 OK Content-Type: text/xml; charset=UTF-8 ... In that last example, the "charset" isn't part of the base mimetype. j On Wed, Jun 17, 2009 at 8:58 AM, Dilli<[email protected]> wrote: > > > Hi, > > i am developing a simple application which takes xml files and do the > operations > > i am testing it on emulator. 1.5 sdk > > I set the intent filters and data and mime types as follows in the > manifest file > > <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/autom+xml"/> > <data android:mimeType="application/xml"/> > <data android:mimeType="application/rss+xml"/> > <!-- added data types --> > </intent-filter> > > Note: > > while loading the xml file from the browser directly loads it as a > text > it gives data:htt://............./file.xml > but it don't give the mime type ie: type: > > how to launh my activity as default for these type of xml files > > need help > > Thank you. > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

