How send a message to the emulator using DDMS in Android studio

北城以北 提交于 2019-12-05 06:45:05

There is no need use DDMS to send sms to emulator. You have to hit the following keys:-

Ctrl + Shift + P

For other options click here

Bharatesh

You can also send through terminal. its answered by @Andi Krusch Sending and receiving text using android emulator

make sure you emulator is online adb devices

  1. Open a console (Terminal)
  2. Connect via telnet to the running emulator: telnet localhost 5554 (you can find the portnumber in the title of the emulator)
  3. type this: sms send senderPhoneNumber textmessage

UPDATED : Another tutorial : mobiforge : SMS Messaging in Android

You can send using emulator extended controls, working perfectly for me, I was unable to send using DDMS

you have the device is selected in the Devices view. without device or emulator You cannot use Emulator Control.

If not help, close Eclipse, and run DDMS outside of Eclipse

Go to the ddms shell script in tools directory wherever you installed the Android SDK.

If it not work then help, run adb kill-server, followed by adb start-server, where adb should be in your platform-tools/ directory of your SDK installation. Then, try DDMS again.

If that does not help, reboot, then try DDMS again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!