Created
January 24, 2012 07:40
-
-
Save yassersouri/1668703 to your computer and use it in GitHub Desktop.
Sending SMS with andoroid - the fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void sendSMS(String to, String text) { | |
SmsManager sms = SmsManager.getDefault(); | |
ArrayList<String> messages = sms.divideMessage(text); | |
sms.sendMultipartTextMessage(to, null, messages, null, null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment