MAKING PHONE CALLS
Besides sending SMS messages to the emulator, you can also use the Telnet client to make a phone call to the emulator. To do so, simply use the following commands.
NOTE At the time of writing, the Android 3.0 emulator does not support phone calls.
To telnet to the emulator, use this command (replace 5554 with the actual number of your emulator):
C:\telnet localhost 5554
To make a phone call to the emulator, use this command:
gsm call +651234567
The syntax of the gsm send command is as follows:
gsm call <phone_number>
Figure B-23 shows the emulator receiving an incoming call.
Likewise, you can also use the DDMS perspective to make a phone call to the emulator. Figure B-24 shows how to make a phone call using the Telephony Actions section.
As with sending SMS, you can also make phone calls between AVDs by using their port numbers as phone numbers.
Get Beginning Android now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.