您的位置:首页 > 移动开发 > Android开发

Android 程序启动另一个程序

2016-07-09 11:27 399 查看
    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); //--启动


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: