The Android emulator has support for receiving text messages. You can send a SMS to an emulator by using the command line. So the first step is:
1. Be sure you have the Telnet Client feature on
To enable the Telnet feature on windows you have to make the following steps:
- Go to Control Panel
- Select Programs and Features
- And from the left panel select Turn Windows features on or off
- And now check the Telnet Client and/or server. (Actually the Telnet Server is not necessary but I usually enable it in case that I will need it sometime). Then press the OK button.
- Type telnet and then press enter
- Type open localhost 5554 and then press enter. The 5554 number is the port of the emulator. Usually the emulator runs on this port but it can be also 5556 or other. So you have to choose your emulator’s port. It can be read from the emulator’s title.
- Now type the command for sending the SMS. The command is:
sms send YourPhoneNumber "YourMessage"
- No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.
- No support for USB connections
- No support for device-attached headphones
- No support for determining network connected state
- No support for determining battery charge level and AC charging state
- No support for determining SD card insert/eject
- No support for Bluetooth
Search In Blog
Want to donate?
Recent Posts: My Android Solutions
If you ever wondered how to read and parse a simple JSON file stored in the assets directory of your Android project, here is a way to do it.
In this tutorial I will create a simple Sectioned RecyclerView that will show 2 sections and a few items in each section and how to move an item from one section to another. Note: For RecyclerView I used AndroidX imports and not android.support.v7.widget.RecyclerView! Setup We need to import the recycler view from AndroidX. The build.gradle…
Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. In my project I created a RecyclerView with 2 columns,…