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
applications
like yours : You cannot know in which usb mode the target device is
currently,
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
+ADB,
otherwise Android Market will not work ?

Good luck !

   Frank





-- 


Sponsored Links


Other Threads

1. Forward Facing Camera

Anyone have any knowledge of Android devices with forward facing cameras which 
are programable ?
[Native code is ok, does not have to be Java]


--

2. Battery Use application porting problems

Hello,

Would you please to help me solve the problems?


power_profile.xml is a file describing the current/power consumed by
subsystems of Android Phone.
PS. Directory /frameworks/base/core/res/res/xml/power_profile.xml

How to consturct the power_profile.xml file?
whatever.

Which person/manufacturer has to build the power_profile.xml?
Google or some device manufacturer like HTC.


"Battery Use" is a build-in application of Android 1.6.
The power information is calculated from power_profile.xml and
BatteryStatsImpl.java.
Is the power information of "Battery Use" accurate enough to represent
power consumption in real world?


Thanks a lot
Tony

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. SDK and AVD manager fails to retain settings

4. What changed need to made to add a font.ttf file ?

5. Casense update 1.1.1

6. How to begin with android

7. Override Dock Launcher