我这样做的但是会出错,帮忙看一下我哪儿错了
Uri smsUri = Uri. parse ( "tel:13555555555" );returnIt =  new  Intent (Intent . ACTION_VIEW , smsUri);returnIt.putExtra( "sms_body" ,  "shenrenkui" );returnIt.setType( "vnd.android -dir/mms-sms" );
this.startActivity(returnIt);

解决方案 »

  1.   

    Uri smsUri = Uri. parse ( "smsto:13555555555" );
    String action="android.intent.action.SENDTO";
    returnIt = new Intent (action, smsUri);
    returnIt.putExtra( "sms_body" ,   
    "shenrenkui" );
    startActivity(returnInt);
      

  2.   

    action 应该用 Intent.ACTION_SENDTO
      

  3.   

    1L is right. 
    //case you don't have the number
    public static Intent getIntentSms(String message){
    Intent it = new Intent(Intent.ACTION_VIEW); 
    it.putExtra("sms_body", message); 
    it.setType("vnd.android-dir/mms-sms"); 
    return it;
    }//case you have the number
    public static Intent getIntentSms(String message, String number){
    Uri uri = Uri.parse("smsto:" + number); 
    Intent it = new Intent(Intent.ACTION_SENDTO, uri); 
    it.putExtra("sms_body", message); 
    return it;
    }