Android 程序调用系统发信息程序

来源:互联网 发布:java中的同步方法 编辑:程序博客网 时间:2024/04/30 19:20

intent = new Intent( );
   ComponentName comp = new ComponentName("com.android.mms", "com.android.mms.ui.ConversationList");
   intent.setComponent(comp);
   intent.setAction("android.intent.action.VIEW");
   startActivity(intent);// ---启动系统发信息软件,

 

 Intent it = new Intent(Intent.ACTION_VIEW); 
           it.putExtra("sms_body", "The SMS text");  
           it.setType("vnd.android-dir/mms-sms"); 
           startActivity(it); //--启动系统发信息软件并直接到发信窗口http://www.androiddown.com/?tag=android-intent

 

此方法适用一个程序于启动另一个程序

 

 

http://topic.csdn.net/u/20091221/15/602151bb-b309-484e-9ad7-83b4de4ef78a.html

原创粉丝点击