Home > Mobile >  Texting is very simple, I just can't succeed.
Texting is very simple, I just can't succeed.

Time:11-25

Ladies and gentlemen, on baidu, I send text messages is very simple,
Private void smsOpera () {
SmsManager SmsManager=SmsManager. GetDefault ();
SmsManager. SendTextMessage (" 123456 ", "adfada", "textSms", null, null);
}

But, I just don't succeed,
Excuse me, have a successful students?
If it's just wrong permissions, should run times wrong reminder, unfortunately, without exception, and not to go out,

CodePudding user response:

Send text messages to see what your mobile phone is Android version, and you want to use their mobile phones to test, you need dynamic application SEND_SMS rights above 6.0, otherwise an error, you add dynamic permissions apply to try again,
  • Related