Issue
I am looking for a solution which uses Android API to transfer a text file from an Android powered device to a computer through USB cable. I have found USB host but I cannot use this because the computer can not act as a device for the Android host.
Do you have any suggestions how I can achieve this?
Solution
I have solved this problem by using adb status-window
to continuously check for device status, and when a new device is connected, the required files are transferred to the computer using adb pull
command.
In order to achieve a portable solution (i.e. to run independently of Android platform), I just copied the files 'adb.exe' and 'AdbWinApi.dll' into my application and used the adb from there.
Answered By - niculare
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.