gpt4 book ai didi

java - 在android中无需用户交互即可发送彩信

转载 作者:行者123 更新时间:2023-11-29 08:06:33 24 4
gpt4 key购买 nike

 Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.putExtra("address", "12134567899");
intent.putExtra("sms_body", "See attached picture");


intent.putExtra(Intent.EXTRA_STREAM,
Uri.parse("file:///sdcard/DCIM/Camera/2011-09-09 12.47.29.jpg"));
intent.setType("image/png");


intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(intent);

我尝试这样的代码。如果 intent start mms compose ui 即将到来,我该如何克服并自动发送

最佳答案

首先。祝你好运。由于 android sdk 不支持彩信,您有 2 个选择:

  1. 下载 android 彩信应用程序并尝试了解那里发生了什么。

  2. 点击此链接: http://androidbridge.blogspot.com/2011/03/how-to-send-mms-programmatically-in.html

我目前唯一能找到的东西....

关于java - 在android中无需用户交互即可发送彩信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10833697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com