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. JAD - Java Application Descriptor like


Once the application is compiled and packed, is there a way provide
external properties to the andorid application. Similar to JAD file in

Raja Nagendra Kumar,

2. Log start- / end desitination and kilometers how?


Thanks to this forum now i get the mock location provider working with
the google map in Android.

As an another part of my study application I have to make a log system
which should log start destination, end destination and kilometers of

Is there any easy way to do this? I think when a driver is start
driving he is press "START" in Android then I will take the first GPS
data line and analyze it, but how do i get the location in adress

Let say he start driving from A, and B is the end destination. When he
come to B he is press "END" in Android, then the system has log his
trip (as GPS data structure), but how do I calculate the kilometers he
has driven?

Hope some can help me explain how I can solve this problem - thank you.

3. Real GPS (not Mock) with Android how?

4. Built in Location Provider

5. Daily Report

6. One more activitr can not use same package in eclipe

7. Regarding Multiple Language support.