V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
GJMing
V2EX  ›  Android

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

  •  
  •   GJMing · 2015-11-23 18:51:56 +08:00 · 4644 次点击
    这是一个创建于 3099 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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();
    }

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2165 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 10:33 · PVG 18:33 · LAX 03:33 · JFK 06:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.