Title: android usb connection for android v <= 2.2
Tags: android;usb;linux-device-driver
Question: I want to connect my android phone to my pc using USB cable.
Now, I need to send some messages to the pc from my android device via this USB connection ans vice a versa.
I know about USB host but sadly i am using android 2.2. My pc has linux so i can develop basic device driver.
I want to know,
Is there any other api for such task ?
If not how should i approach it using device driver ? Which communication protocol should i use ?
P.S. :I am not talking about connecting other USB device. I just want to communicate using the cable provided with our phone.
Thanks.


Here is another answer: if you have sdk installed on the pc u can communicate via adb very easily.
Comment for this answer: this does not answer the question and should not be posted as one.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:03/15/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<android><usb><linux-device-driver>', 'Title': 'android usb connection for android v <= 2.2', 'ViewCount': 480, 'id': 15423813, 'user_AboutMe': '', 'user_AccountId': 2470507.0, 'user_DisplayName': 'geek_guy', 'user_Reputation': 597.0, 'user_Views': 46.0, 'user_id': 2152506.0}}