How To Use MTP-connected Devices

by Doug Gordon » Thu, 03 Mar 2011 01:48:04 GMT

Sponsored Links
 My app currently requires the user to manually copy certain files from 
their PC to their USB-mounted Android device where my app can open them 
and do its thing. But I'm already running into issues with users' 
devices that want to mount in this "MTP" mode, and I hear that the Xoom 
*only* supports MTP, etc.

So how can MTP be used to transfer files to the device that don't really 
fit into the "Media files" category, and how do I locate the directory 
from my app? What do getExternalStorageDirectory and getExternalFilesDir 
return for a device like the Xoom?

Doug Gordon
GHCS Software


Re: How To Use MTP-connected Devices

by FrankG » Thu, 03 Mar 2011 04:59:35 GMT

 Hi Doug,

I can imagine that this will be more an more a problem for
like yours : You cannot know in which usb mode the target device is
as this is highly vendor/manufacturer specific. You would also run
into trouble
if the user will use pictbridge. And you also not able to trigger a
mode change
because the interface to this is also specific for the manufacturer.

Would be interessted to know whether XOOM only supports MTP, but --
how far I understood Dianne in the past -- it must be at least MTP
otherwise Android Market will not work ?

Good luck !



Sponsored Links

Other Threads

1. Land Navigation Application development

I'm a US Army Officer Cadet, not a developer.  However, I've seen
things like the Radar application and know that you can do amazing
things with GPS functionality.

Part of our training in the Army requires us to do land navigation,
where we use 8 digit grid coordinates (e.g. EG12345678) to navigate
between two points using a distance (e.g. 1650 meters) and direction
in degrees (e.g. 273*).

It would be incredibly useful is someone could develop an application
in which I could enter a distance and direction (e.g 1650 meters at
273*) that would give me the range remaining and notify me when I'm
drifting off azimuth (ideally establishing a tolerance that notifies
me when my azimuth variation would result in my being more than 15
meters from my target destination).  Perhaps the application could
even generate and store the map location that's specified by the
distance and direction and automatically recalculate a new distance
and direction in the event that I become lost or disoriented or need
to navigate to a new waypoint.

Please let me know if you could develop such an application!  I know
that thousands of cadets and soldiers would find this application
incredibly useful!


2. Implementing Google Finance Search


Is it possible to use the 'Google Finance Search' in our Android App?
I am basically looking for a way to put in a 'Company Name' and it
should return the 'Stock Quote' suggestions similar to the search
field in the Google Finance web page.

I started looking at the Android Search examples code, but I am not
finding a way to implement it.

Any suggestions will be highly appreciated.

Thank you


3. PC Crashing

4. how to generate user defined events and thier handlers?

5. Android - source code.

6. Android Icon Style .psd Kit

7. Developer discount program