GJMing
V2EX  ›  Android

Android SmsManager 发送长中文短信闪退,如果是英文则不会。为什么?

  •  
  •   GJMing · Nov 23, 2015 · 12335 views
    This topic created in 3900 days ago, the information mentioned may be changed or developed.

    SmsManager sm = SmsManager.getDefault();
    ArrayList<String> msgs = sm.divideMessage(content);
    for (String string : msgs) {
    if (string != null) {
    sm.sendTextMessage(phone, null, string, null, null);
    }
    Toast.makeText(getApplicationContext(), "发送完毕", Toast.LENGTH_SHORT)
    .show();
    }

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5775 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:12 · PVG 14:12 · LAX 23:12 · JFK 02:12
    ♥ Do have faith in what you're doing.