android - Send file to computer system using USB -


i have such requirement in have transfer file on computer system, lets consider windows pc.

what want have 1 screen specific details,i writing values in 1 text file, if user clicks on button file must copied computer @ specific location using usb.

i have tried search didn't useful.i've refer below link

http://developer.android.com/guide/topics/connectivity/usb/host.html

is possible in android, how communicate windows system ?

regards

update :

i able sopy files computer using adb

./adb -s emulator-5554 pull /sdcard/juned.jpg /root/juned/android_usb/ 

but can same thing android application ?

i think question not specific answered. explain bit consider following:

  • you have turn android device in usb host mode enumerates connected usb devices
  • establish connection receiving device. going storage or drive known configuration of endpoints
  • when established, use function bulktransfer(usbendpoint endpoint, byte[] buffer, int offset, int length, int timeout), documented in link provided. keep in mind choose correct endpoint (direction storage / drive)

this sketch started. it's clear there lot more do..


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -