向模拟器发短信打电话的方法

1.启动android emulator,查看标题栏找出端口。一般是android emulator (5554),其中5554就是端口。

2.打开命令行,输入telnet localhost 5554。程序将会连接到android console,返回

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

OK

模拟电话打入gsm <call|accept|busy|cancel|data|hold|list|voice|status>

输入gsm call <模拟打进的电话号码>。如:

gsm call 15555218135

模拟短信发送sms send <senderPhoneNumber> <textmessage>

输入sms send <模拟发送短信的电话> <内容>。如:

sms send 15555218135 hello

其中,15555218135为模拟器手机号码。

更多相关文章

  1. Android判断真机和模拟器
  2. 【Android】AndroidStudio无法创建原生模拟器
  3. TextView实现电话、网址链接
  4. Android Tips: 打电话和发短信
  5. Android电话录音
  6. How to root android emulator (Android 7.1.1/ Nougat) 如何roo
  7. android终端模拟器运行命令可以进行adb connect
  8. Mono for Android—初体验之“电话拨号器”
  9. android 模拟器获取root权限

随机推荐

  1. 常见UI布局
  2. 在Eclipse中进行Android单元测试
  3. 安卓布局
  4. android官网没法访问issue
  5. Android(安卓)Studio Emulator: Process
  6. android电池信息简介
  7. Android布局属性大全
  8. Android(安卓)Studio(The Official IDE f
  9. Android应用程序资源
  10. 在android创建bitmap避免低记忆法