Quoting Sergey KostrovHi Alex, I just discovered a command lineoption "-gps" of the Android Emulator:
Android Emulator usage: emulator [options] [-qemu args] options: ... -gps redirect NMEA GPS to character device ...
and my question is what is a "character device"? Did they mean COM1, COM2, etc,or LPT1, LPT2, etc?
Resolved: Please take a look at a command line option '-help-char-devices'
..\tools>emulator-x86.exe -help-char-devices
various emulation options take a specification that can be used to specify something to hook to an emulated device or communication channel. here is the list of supported specifications:
stdio standard input/output. this may be subject to character translation (e.g. LN <=> CR/LF)
COM [Windows only] where is a digit. host serial communication port.
pipe: named pipe
file: write output to , no input can be read
pty [Linux only] pseudo TTY (a new PTY is automatically allocated)
/dev/ [Unix only] host char device file, e.g. /dev/ttyS0. may require root access
/dev/parport [Linux only] use host parallel port. may require root access
unix:[,server][,nowait]] [Unix only] use a Unix domain socket. if you use the 'server' option, then the emulator will create the socket and wait for a client to connect before continuing, unless you also use 'nowait'
tcp:[]:[,server][,nowait][,nodelay] use a TCP socket. 'host' is set to localhost by default. if you use the 'server' option will bind the port and wait for a client to connect before continuing, unless you also use 'nowait'. the 'nodelay' option disables the TCP Nagle algorithm
udp:[]:[@[]:] send output to a remote UDP server. if 'remote_host' is no specified it will default to '0.0.0.0'. you can also receive input through UDP by specifying a source address after the optional '@'.
fdpair:, [Unix only] redirection input and output to a pair of pre-opened file descriptors. this is mostly useful for scripts and other programmatic launches of the emulator.
none no device connected
null the null device (a.k.a /dev/null on Unix, or NUL on Win32)