Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending and receiving text using android emulator [closed]

I'm currently developing android application which includes text messaging. Is it possible to send and receive text messages just by using android emulator? If yes, how can I do it?

like image 482
sean Avatar asked Dec 01 '10 15:12

sean


People also ask

Can Android emulator receive SMS?

If you read the emulator documentation, you will see that you can send and receive text messages between the environment within the emulator and the emulator console.

Can Android Studio 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.

How do I get SMS on my emulator?

This worked for me: Run an emulator and click "More." That's three horizontal dots to the right of the emulator window. Then click "Phone". Now you see your message.

Why is my Android emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.


2 Answers

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
like image 66
Andi Krusch Avatar answered Sep 28 '22 14:09

Andi Krusch


You can also use two emulators. Open both emulators simultaneously. They will be named emulator-5554 and emulator-5556.

Then from one device, text (555)521-555x, where the last 4 digits are the number from the emulator name. This will allow you to text between both devices.

like image 22
Gajendra Bang Avatar answered Sep 28 '22 16:09

Gajendra Bang