4

I need to read a file from laptop using USB connection.

Is it possible to read from our application and use it?

I checked UsbManager class but does not have any sample code to do it.

Please help me on this.

10
  • Why don't you read it through wifi or bluetooth app ? Commented Apr 19, 2013 at 11:37
  • 1
    Usually Android device connected to computer is recognized as "Media device" or MTP. User can "send" file from computer to Android device. It is like sending something through the post office: receiver will only get what you sent him, but will not know what else you have in your possession. Commented Apr 19, 2013 at 11:41
  • 1
    Thanks @Chetan. I will go through it and try it. Commented Apr 19, 2013 at 12:17
  • 1
    @Saravanakumar:Do I deserve vote up on any my answers Commented Apr 19, 2013 at 12:22
  • 1
    @Chetan: I think you need to create an answer, not a comment to get vote ups. I'm afraid that user with 29 reputation can't vote up comments. Commented Apr 19, 2013 at 13:46

1 Answer 1

2

Is it possible to read from our application and use it?

No, sorry.

Sign up to request clarification or add additional context in comments.

2 Comments

Ok. Then I will check using bluetooth or wifi. Thanks.
@CommonsWare how to send a file on computer from android device using USB ? i can i cheive this using command line adb pull /sdcard/juned.jpg /root/juned/android_usb/ but how to do it programmatically please check

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.