问题
In my application I want to copy a file from PDA to PC via USB, using Java.
But I don't have any idea about how to do this and what API to use for that?
回答1:
You need to use RAPI in order to do this. In order to access the RAPI dll from Java you can either use JNI or a library like this NativeCall.
回答2:
I have post describing how to do this in .NET, although it doesn't directly solve your problem it does demonstrate which methods to use in RAPI and how to use them.
http://christian-helle.blogspot.com/2007/06/copying-files-from-device-to-desktop.html
来源:https://stackoverflow.com/questions/4691140/copy-a-file-from-pda-to-pc-via-usb-in-java