【发布时间】:2011-11-22 09:25:33
【问题描述】:
我正在开发一个 Android 应用程序。在这个应用程序中,我连接内置消息传递。在此消息中,静态传递我的应用中的数字和文本。
这可能吗?
【问题讨论】:
-
请再次阅读您的问题并更正错误。使用标点符号也会大大提高问题的可读性。
-
您能详细说明为什么需要这样做吗?
我正在开发一个 Android 应用程序。在这个应用程序中,我连接内置消息传递。在此消息中,静态传递我的应用中的数字和文本。
这可能吗?
【问题讨论】:
String number = "12345678";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.fromParts("sms", number, null)));
或
Intent intent = new Intent(Intent.ACTION_SENDTO,
Uri.fromParts("sms", phone_number, null));
startActivity(intent);
【讨论】: