`
yinzhijia
  • 浏览: 13448 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Mac 下Idea开发android项目,模拟发短信

阅读更多

1、启动模拟器,找出模拟器的端口(一般模拟器上方显示)

 

2、打开命令行终端,输入

     telnet localhost 端口

telnet 客户端会连接android console,应该开到类似如下提示:

    Trying ::1...

    telnet: connect to address ::1: Connection refused

    Trying 127.0.0.1...

    Connected to localhost.

    Escape character is '^]'.

   Android Console: type 'help' for a list of commands

   OK

以上表示操作成功。

 

3、模拟发短信

   sms send 模拟号码 内容;例如:sms send 1380001380001 hello

 

4、模拟打电话

  gsm call 模拟要打的号码;例如:gsm call 1380001380001

 

0
3
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics