Hi,

I tried to use the SEND action  as defined in the Manifest of MMS:

<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="image/*"/>
</intent-filter>

I provided a file url to a png image as data. MMS failed with the
following error:

12-15 10:02:21.952: ERROR/AndroidRuntime(168):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.android.mms/com.android.mms.ui.ComposeMessageActivity}:
java.lang.IllegalArgumentException: Query on file:///sdcard/image.png
returns null result.

Looking at the code in ImageUri, the only supported schemes are mms:
and image:

Would it make sense to add support for file: scheme? Where would be
the best place? Unfortunately, the given mimeType in the intent is
lost on the way to ImageModel. So the ComposeMessageActivity needs a
method "addImage(Uri uri, String mime-type)"

Friedger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to