And here is the init block from the ComposeMessage

   if (savedInstanceState != null) {
            mThreadId = savedInstanceState.getLong("thread_id", 0);
            mMessageUri = (Uri) savedInstanceState.getParcelable
("msg_uri");
            mExternalAddress = savedInstanceState.getString
("address");
            mComposeMode = savedInstanceState.getBoolean
("compose_mode", false);
            mExitOnSent = savedInstanceState.getBoolean
("exit_on_sent", false);
            mSubject = savedInstanceState.getString("subject");
            mMsgText = savedInstanceState.getString("sms_body");
        } else {
            mThreadId = intent.getLongExtra("thread_id", 0);
            mMessageUri = (Uri) intent.getParcelableExtra("msg_uri");
            if ((mMessageUri == null) && (mThreadId == 0)) {
                // If we haven't been given a thread id or a URI in
the extras,
                // get it out of the intent.
                Uri uri = intent.getData();
                if ((uri != null) && (uri.getPathSegments().size() >=
2)) {
                    try {
                        mThreadId = Long.parseLong(uri.getPathSegments
().get(1));
                    } catch (NumberFormatException exception) {
                        Log.e(TAG, "Thread ID must be a Long.");
                    }
                }
            }
            mExternalAddress = intent.getStringExtra("address");
            mComposeMode = intent.getBooleanExtra("compose_mode",
false);
            mExitOnSent = intent.getBooleanExtra("exit_on_sent",
false);
            mMsgText = intent.getStringExtra("sms_body");

            setSubjectFromIntent(intent);
        }

On Feb 3, 9:33 am, Alexey <avolo...@gmail.com> wrote:
> This is from manifest of mms applicaton
>  <intent-filter>
>                <action android:name="android.intent.action.SEND" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>                <data android:mimeType="text/plain" />
> So this should work and yet i have only gmail and K9 app respond to
> 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");
>
>                 List<ResolveInfo> activitiesList =  
> getContext().getPackageManager
> ().queryIntentActivities(sendIntent, 0) ;
>                 try {
>                         
> getContext().startActivity(Intent.createChooser(sendIntent,
> getContext().getText(R.string.share_this_story)));
>                 } catch (android.content.ActivityNotFoundException ex) {
>                         Toast.makeText(getContext(), "Can't share", 
> Toast.LENGTH_SHORT).show
> ();
>                 }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to