Is there a support for external GPS devices ( like GALILEO GPS Receiver )on a real Android Device?
If Yes, how it could be configured?
Hi 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?
If Yes, this isexactly what I need!
character device is a term used in the Linux*/Unix* world. A serial port will work.
Resolved: Please take a look at a command line option '-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
telnet::[,server][,nowait][,nodelay] similar to 'tcp:' but uses the telnet protocol instead of raw TCP
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)
NOTE: these correspond to the parameter of the QEMU -serial option as described on http://bellard.org/qemu/qemu-doc.html#SEC10
Here are two screenshots...
1. When a GPS device is connected to a host-computeryou need to use Windows Device Manager to see a COM-port number:
2. When Android Emulator started from a command line with option '-gps COM6'it shows adialog box to confirm COM-port settings:
It's an open source that allow android application to connect GPS bluetooh
Hi serge i tried your solution and it didn't work can you help me please????