GJMing
V2EX  ›  Android

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

  •  
  •   GJMing · Nov 23, 2015 · 12379 views
    This topic created in 3916 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   ·   4896 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:18 · PVG 17:18 · LAX 02:18 · JFK 05:18
    ♥ Do have faith in what you're doing.