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.

image

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:	elnet 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset