Hi all,
I've written an app that can handle the VIEW action for a given
mimeType, say "application/foo". By adding the following to
AndroidManifest.xml the Browser automatically uses my app to open
downloads of that type:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="application/foo"/>
</intent-filter>
The GMail app also tries to use my app to Preview attachments of that
type, but it's passing a URI with scheme "gmail-ls://" rather than a
"file://" URI. I guess I need to use a ContentProvider to get the
attachment data, I haven't looked into that yet.
But the real mystery is the Email app... there just doesn't seem any
way to make it open the attachments.
Any pointers? Opening attachments is a very common requirement of
course, and I would expect the Android platform to encourage
developers to write apps to handle more mime types. Instead I couldn't
find any answers:
http://groups.google.com/group/android-developers/browse_thread/thread/d0455a53d0265298
http://groups.google.com/group/android-developers/browse_thread/thread/b540ad05825fe6ca
Thanks
Mirko
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---