Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android testing sms from emulator

Tags:

android

sms

If the application using sms-sending and receiving how is it possible to test it within the emulator?

like image 559
Sergey Avatar asked Oct 03 '11 17:10

Sergey


People also ask

Can Android emulator send SMS?

You can emulate sending SMS messages to the Android emulator using either the Dalvik Debug Monitor Service (DDMS) tool available in Eclipse, or the Telnet client.

Can we simulate SMS messages and test on emulator using SMS API?

Now You can send an SMS or make a call using Emulator Control . In Eclipse go to window->show views->other->Emulator control . That is for sending/receiving SMS between built-in messaging application of the Android OS.

What is the command to simulate an SMS message?

Microsoft Telnet> (b)Assuming that your Emulator is already started.And while still on the CMD,type: o localhost 5554. this should open a connection to the emulator. (c)To Emulate an incoming sms from a number say 0123456 type: sms send 0123456 Your Message.


2 Answers

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.

like image 134
Sunny Avatar answered Sep 28 '22 14:09

Sunny


Now we can use emulator's extended control to send directly to the emulator.

  1. Open Extended controls window.
  2. Open Phone tab
  3. Enter message and send

enter image description here

like image 29
kanji Avatar answered Sep 28 '22 14:09

kanji