未发送包含 GoogleMaps link 的短信

SMS with GoogleMaps link is not sent

我正在使用 GoogleMaps link 发送短信,但在某些情况下,phone 不发送,我不知道原因,发送了其他 link通常。

消息图片如下:

我需要一些帮助来解决这个问题。而且,重要的是,使用 SMS 的想法是不需要互联网。

这是我用于生成的代码:

String uri = "http://maps.google.com/maps?q=" + lat + "," + lng;
    if (!preferences.getNumber(activity).equals("")) {
        smsBody.append(Uri.parse(uri));
        String phone1 = preferences.getNumber(activity);
        try {
            smsManager.sendTextMessage(phone1, null, msgASerEnviada, null, null);
            smsManager.sendTextMessage(phone1, null, smsBody.toString(), null, null);//mensagem com o link
            Toast.makeText(activity, "Sent to " + phone1, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
            e.printStackTrace();
            Toast.makeText(activity, "Something wrong", Toast.LENGTH_SHORT);
        }
    }

通过删除 http://

解决