Sending and Receiving Text Using Android Emulator

Sending and receiving text using android emulator

It's quite easy:

  • open a console
  • connect via telnet to the running emulator: telnet localhost 5554 (you can find the portnumber in the title of the emulator)
  • type this: sms send senderPhoneNumber textmessage

Android testing sms from emulator

It is so simple first start the emulator and launch your application.
now if you have another project(any) launch this in another emulator.
On the other emulator start sms application and send sms to the emulator in which your app is running.The phone no. is simply the emulator number like 5556 or 5554.

Edit

Now You can send an SMS or make a call using Emulator Control. In Eclipse go to window->show views->other->Emulator control.

Sending sms text message from android emulator to second emulator instance

I ended up starting the application from the second emulator. That is, from 5556 and it successfully sent an sms to the first emulator I started, to 5554. I don't know why it would not send from the first emulator I started. But nonetheless, it worked.



Related Topics



Leave a reply



Submit