短信

SmsManager smsManager=SmsManager.getDefault();

if(content.length()>70)

{

List<String>contengList=smsManager.divideMessage(content);

for(String temp:contengList)

{

smsManager.sendTextMessage(mobileNumber,null,temp,null,null);

}

else

{

smsManager.sendTextMessage(mobileNumber,null,content,null,null);

}

Toast.makeText(SMSenderActivity.this,"sending is over".Toast.LENGTH_LONG).show();

 

 

 

你可能感兴趣的:(String,null)