December 14th, 2011, 03:11 PM
|
#2 (permalink)
|
|
Premium Member
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
|
On Mac OS X, there is no mount point. Mac OS X doesn't have native support for MTP. A Mac OS X user needs to use the Android File Transfer app. If you want to communicate with an Android 3.0+ device from a Mac OS X app, you'll need to provide your own MTP host. DoubleTwist doesn't work with Android 3.0+ devices over USB, probably for this very reason.
Under Windows, MTP devices are also not exposed in the regular filesystem. Normally you can drag and folder from Windows Explorer into Command Prompt to get the path of a folder, but Command Prompt won't accept folders from MTP devices. It's been a very long time since I've done Windows programming, and I'm not about to start again. But I think you'd have to look not at the Android API for this, but the Win32 API. Perhaps there is a device enumeration API that you can you to find the Android device, and from there get access to an API with which you can use to transfer files.
|
|
|