gpt4 book ai didi

Android:是否有在任何 Android 设备上发送彩信的通用方法?

转载 作者:IT老高 更新时间:2023-10-28 22:18:45 24 4
gpt4 key购买 nike

此代码适用于具有 native android 系统的普通谷歌设备。但是 htc sense 设备的列表中没有 MMS 应用程序,我不知道 Motorola Blur 等:

    final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("image/png");
emailIntent.putExtra(Intent.EXTRA_STREAM, uri);
context.startActivity(Intent.createChooser(emailIntent, context.getString(R.string.send_intent_name)));

此代码适用于 htc,但不适用于选择器,这是我真正需要的:

    Intent sendIntent = new Intent("android.intent.action.SEND_MSG");
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("image/png");
context.startActivity(sendIntent);

但我不知道如何将这些代码示例组合在一起,也不知道如何以编程方式确定 Htc Sense ui。支持不同类型的设备是否正确?

感谢您的回答。

最佳答案

感觉,尤其是旧版本是一种痛苦。还有webview控件也有一堆问题。根据消息的数量,您可以尝试使用像亚马逊的简单通知服务这样的网络服务来发送短信:http://aws.typepad.com/aws/2011/11/amazon-simple-notification-service-now-supports-sms.html它不是一个 android 解决方案,但它可能会起作用。

关于Android:是否有在任何 Android 设备上发送彩信的通用方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2956470/

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