I'm using RSA Encryption with a key of 1024bit , the ciphered text's length will be more than 160 bytes , and on sending an SMS of more than 160bytes it gives exception and after using sendmultisms() and divide the message , at the receiver side gets unprintable characters and also I will have a problem of how to concatandenate the SMSs.
Asked
Active
Viewed 1,139 times
0
-
I am doing something similar HERE!!! http://stackoverflow.com/questions/14452808/sending-and-receiving-mms-in-android – Etienne Lawlor Jan 22 '13 at 07:58
2 Answers
1
You can also encode the ciphered text using Base64 encoding, break it up the into an ArrayList of Strings and use sendMultipartTextMessage. It then sends as many SMS as needed.
SmsManager sms = SmsManager.getDefault();
ArrayList<String> parts = sms.divideMessage(base64EncodedMessage);
sms.sendMultipartTextMessage(phoneNumber, null, parts, null, null);

Corneliu
- 2,932
- 1
- 19
- 22
-
I did that way but it at the receiver end it receives unprintable characters – andre_lamothe Apr 12 '11 at 10:34
-
1
-
just try it on device it's work fine. I also get this kind of junk character in emulator but on device work fine. – Girish Bhutiya Sep 14 '11 at 14:26