Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending SMS to real test device (not emulator) via DDMS or emulator instance

What is working:- I'm developing my Android applications with Eclipse. I can start two emulator instances and quite happily send SMS messages between them and do whatever I need to. I prefer to do my testing with a real device though so I have my Android device connected and working away happily and I can run and test my applications.

What is Not working:- My problem is sending an SMS to the real device through the DDMS or an emulator instance.. I can't find a way to achieve this. When I have the real device selected in the DDMS the emulator control is inactive. I've been hunting around for the last hour trying various searches and I've come up empty handed so if someone can help by letting me know if it is is possible to spoof an SMS to a real test device that would be great. If it is possible can you point me in the right direction of some reading material?

My current workaround:- I can bite the bullet and just test on two emulators or I can borrow a phone from "She who must be obeyed" and send real messages but too long without a phone makes her grumpy and I try to live by the "Happy wife, happy life" philosophy..

Thanks for reading and I hope someone can help!

Paul

like image 762
Dhampira Avatar asked Feb 26 '12 04:02

Dhampira


People also ask

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

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.

Can emulator receive SMS?

1 1) Goto DDMS. 2) There, the left pane will consist of list of emulators active, select your emulator and then in the right pane you will get Emulator Control->Telephony action-> Incoming Number, Message. Type these and hit send. 3) In your emulator you will receive message.

How can I send SMS from one emulator to another Android?

To send an SMS message to another emulator instance, launch the SMS application (if available). Specify the console port number of the target emulator instance as as the SMS address, enter the message text, and send the message. The message is delivered to the target emulator instance.


1 Answers

After some more time looking around I've come to the same conclusion as Yury, I don't think this can be done using the DDMS or an emulator instance.

However I have found this little nugget on the marketplace which seems to serve my needs well enough: SMS Emulator

It just sends a broadcast intent with the origin address and message body you set. Just thought I should post it here in case it helps anyone else.

UPDATE:

This emulator works only for devices below android 4.2

like image 90
Dhampira Avatar answered Nov 03 '22 02:11

Dhampira