I want to write an Android app that when the phone is connected to PC, it was defined as an external GPS receiver.
The HTC phones have the opportunity to work in a mode 3G modem. If after connecting via USB to select "Internet Modem", then the computer will identify it as a network card and use that for Internet access. I want to know is it possible for GPS. I want the information from the GPS module to transfer via USB to PC.
In the documentation
there is a story about how in Android you can work with external USB devices or accessories. But that's not what I need.
The forums suggest to use the "Share GPS" or "GPS Over BT". But it is very inconvenient. In the case of the first program it is necessary to connect the phone via USB, start the app on the PC via ADB to do port forwarding (that is required to use the Android SDK), and then through the application Franson GPS Gate to create a virtual com port, which will be transferred to the GPS. It is somehow not very convenient.
Is it possible what I want in Java or using the NDK, or rustovannye phones!