Sending commands from a PC to an Android phone - via a physical connection (USB, Serial, etc.)

I am working on a project to automate some tasks (e.g. playing a song, playing a video, receiving Bluetooth data, etc.) on an Android phone from a PC.

Basically, the PC will send the notifier to the phone, and the application or something on the phone will process the notifier and do "something." Opposite of this: http://code.google.com/p/android-notifier/

I have seen several examples showing how to send commands to an application or Android Listener service via a network connection, but in this case I would prefer transmission over a physical connection.

USB Ideally, I want the connection to be via a USB port. But I saw several posts on the Internet that suggest that the SDK does not support this. ( Android apps that interact with a device connected to a USB port ).

Serial port via USB I also saw some sites that show how to use breakoutbox to perform bidirectional serial communication, but only with G1. Is this possible with new phones?

. Galaxy S, . .

+5
2

HTTP- , USB Tether. . HTTP- - ip .

EDIT: , , .

+2

, , , adb [1].

pc localhost, USB-.

, ip ( adb)...

[1] http://developer.android.com/guide/developing/tools/adb.html#forwardports

0

All Articles