【问题标题】:How to pass number and message inbuild messaging in Android emulator? [closed]如何在 Android 模拟器中传递号码和消息内置消息? [关闭]
【发布时间】:2011-11-22 09:25:33
【问题描述】:

我正在开发一个 Android 应用程序。在这个应用程序中,我连接内置消息传递。在此消息中,静态传递我的应用中的数字和文本。

这可能吗?

【问题讨论】:

  • 请再次阅读您的问题并更正错误。使用标点符号也会大大提高问题的可读性。
  • 您能详细说明为什么需要这样做吗?

标签: android messaging


【解决方案1】:
 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);

【讨论】:

  • 非常感谢您的宝贵回复
  • 欢迎,但是下次如果可能的话,请用一些代码、图像或堆栈跟踪来澄清你的问题,然后其他用户也可以帮助你。谢谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-07
  • 2010-10-18
  • 1970-01-01
  • 2016-11-17
相关资源
最近更新 更多