sendTextMessage In android phone

后端 未结 4 2023
温柔的废话
温柔的废话 2020-12-06 23:40

This is simple code send SMS.

47: SmsManager sms = SmsManager.getDefault();
48: sms.sendTextMessage(\"12345678901\", null, \"hello!\", null, null);
         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 00:28

    I had this problem when using special characters in the SMS Message. Changing to normal english characters worked for me.

提交回复
热议问题