thieumao

Send SMS with Android

Nov 7th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Send SMS
  2.  
  3. ____________
  4.  
  5. SmsManager MySmsManager = SmsManager.getDefault();
  6. String PhoneNumber = "0917735107";
  7. String SMSText = "Thieu Mao was here";
  8. MySmsManager.sendTextMessage(PhoneNumber, null, SMSText, null, null);
  9.  
  10. ____________
  11.  
  12. <uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
Advertisement
Add Comment
Please, Sign In to add comment