Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

Android Development
Previous Page Home Next Page

Telephony Emulation

The Android emulator includes its own GSM emulated modem that lets you simulate telephony functions in the emulator. For example, you can simulate inbound phone calls and establish/terminate data connections. The Android system handles simulated calls exactly as it would actual calls. The emulator does not support call audio in this release.

You can use the console to access the emulator's telephony functions. After connecting to the console, you can use

gsm <call|accept|busy|cancel|data|hold|list|voice|status> 

to invoke telephony functions.

The gsm command supports the subcommands listed in the table below.

Subcommand Description Comments
call <phonenumber> Simulate an inbound phone call from <phonenumber>.  
accept <phonenumber> Accept an inbound call from <phonenumber> and change the call's state "active". You can change a call's state to "active" only if its current state is "waiting" or "held".
busy <phonenumber> Close an outbound call to <phonenumber> and change the call's state to "busy". You can change a call's state to "busy" only if its current state is "waiting".
cancel <phonenumber> Terminate an inbound or outbound phone call to/from <phonenumber>.  
data <state> Change the state of the GPRS data connection to <state>. Supported <state> values are:
  • unregistered -- No network available
  • home -- On local network, non-roaming
  • roaming -- On roaming network
  • searching -- Searching networks
  • denied -- Emergency calls only
  • off -- Same as 'unregistered'
  • on -- same as 'home'
  • hold Change the state of a call to "held". You can change a call's state to "held" only if its current state is "active" or "waiting".
    list List all inbound and outbound calls and their states.  
    voice <state> Change the state of the GPRS voice connection to <state>. Supported <state> values are:
  • unregistered -- No network available
  • home -- On local network, non-roaming
  • roaming -- On roaming network
  • searching -- Searching networks
  • denied -- Emergency calls only
  • off -- Same as 'unregistered'
  • on -- Same as 'home'
  • status Report the current GSM voice/data state. Values are those described for the voice and data commands.
    Android Development
    Previous Page Home Next Page

     
     
      Published under the terms fo the Apache 2.0 License Design by Interspire