The answer is simple:
http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=blobdiff;f=AndroidManifest.xml;h=bdb822cd1b5014bf0814160138e8ac0c3cce29c7;hp=772fc2270e138a1f3d2bf077a17908fb7ca8a122;hb=HEAD;hpb=8eed706474910ccb978acda03e85d3261037da6e

The original version of MMS only had the intent filter for image/*
MIME type. As you can see in the diff, video/* and text/plain MIME
types have been added later (in cupcake), but are not available on the
device yet.

Peli
www.openintents.org

On Feb 3, 8:20 pm, Alexey <[email protected]> wrote:
> Hi All i'm looking for answer why Messaging is not showing up in the
> activity chooser dialog.
> Looking at the manifest it should do exactly that
>
>         <activity android:name=".ui.ComposeMessageActivity"
>                   android:configChanges="orientation|keyboardHidden">
>             <intent-filter>
>                 <action android:name="android.intent.action.VIEW" />
>                 <category
> android:name="android.intent.category.DEFAULT" />
>                 <data android:mimeType="vnd.android-dir/mms-sms" />
>             </intent-filter>
>             <intent-filter>
>                 <action android:name="android.intent.action.VIEW" />
>                 <action android:name="android.intent.action.SENDTO" />
>                 <category
> android:name="android.intent.category.DEFAULT" />
>                 <category
> android:name="android.intent.category.BROWSABLE" />
>                 <data android:scheme="sms" />
>                 <data android:scheme="smsto" />
>             </intent-filter>
>             <intent-filter>
>                 <action android:name="android.intent.action.VIEW" />
>                 <action android:name="android.intent.action.SENDTO" />
>                 <category
> android:name="android.intent.category.DEFAULT" />
>                 <category
> android:name="android.intent.category.BROWSABLE" />
>                 <data android:scheme="mms" />
>                 <data android:scheme="mmsto" />
>             </intent-filter>
>            <intent-filter>
>                <action android:name="android.intent.action.SEND" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                <data android:mimeType="image/*" />
>            </intent-filter>
>            <intent-filter>
>                <action android:name="android.intent.action.SEND" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                <data android:mimeType="video/*" />
>            </intent-filter>
>            <intent-filter>
>                <action android:name="android.intent.action.SEND" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                <data android:mimeType="text/plain" />
>            </intent-filter>
>         </activity>
>
> But if i create my intent like that :
>
> Intent sendIntent = new Intent(Intent.ACTION_SEND);
>                 sendIntent.putExtra(Intent.EXTRA_TEXT, "Body");
>                 sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Header");
>                 sendIntent.putExtra("sms_body", "The SMS text");
>                 sendIntent.setType("text/plain");
>                 try {
>                         
> getContext().startActivity(Intent.createChooser(sendIntent,
> getContext().getText(R.string.share_this_story)));
>                 } catch (android.content.ActivityNotFoundException ex) {
>                         Toast.makeText(getContext(), "Can't share the Story",
> Toast.LENGTH_SHORT).show();
>                 }
>
> Only gmail is an option or gmail +k9 if k9 installed.
> Changing intent type to */* works but it's not really a good options
> since i have a plain text.
>
> thanks Alex.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to