Why can’t I send creepy skeleton text messages?… here is a solution to the problem.
Why can’t I send creepy skeleton text messages?
I’m making an app to send this string :
░░░░░░░░░░░░▄▐
░░░░░░▄▄▄░░▄██▄
░░░░░▐▀█▀▌░░░░▀█▄
░░░░░▐█▄█▌░░░░░░▀█▄
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀
░░░░▄▄▄██▀▀▀▀
░░░█▀▄▄▄█░▀▀
░░░▌░▄▄▄▐▌▀▀▀
▄░▐░░░▄▄░█░▀▀
▀█▌░░░▄░▀█▀░▀
░░░░░░░▄▄▐▌▄▄
░░░░░░░▀███▀█░▄
░░░░░░▐▌▀▄▀▄▀▐▄
░░░░░░▐▀░░░░░░▐▌
░░░░░░█░░░░░░░░█
░░░░░▐▌░░░░░░░░░█
░░░░░█░░░░░░░░░░▐▌
This method sends text:
protected void sendSMSMessage(String phoneNo, String msg){
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo,null,msg,null,null);
Toast.makeText(
getApplicationContext(),
"SMS sent",
Toast.LENGTH_LONG
).show();
Log.v("sendSMSMessage",msg);
} catch (Exception e) {
Toast.makeText(
getApplicationContext(),
"Failed to send. Try again.",
Toast.LENGTH_LONG
).show();
e.printStackTrace();
}
}
If msg
is “test” and I run sendSMSMessage
, a few minutes later I get the string “test” on my phone. If msg
is a ghostly framework, the method runs, but I don’t get the text, and the console doesn’t show any error – pops up an “SMS sent” toast to show that the code executed correctly.
I
received text when I manually texted myself to a ghostly skeleton, but it was all over the place with “(X/6)” (where “x” is a number, of course).
Can’t I send skeleton text messages?
If so, should I make it into a picture and have the code send it as an MMS?
Solution
Maybe the message was too long and it quietly failed somewhere, using divideMessage
and sendMultipartTextMessage
:
ArrayList<String> parts = smsManager.divideMessage(msg);
smsManager.sendMultipartTextMessage(phoneNo, null, parts, null, null);