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