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. myTouch 3G Fender Edition Is A Hit!!!

http://androidcommunity.com/mytouch-3g-fender-edition-is-a-hit-20100211/

-- 
"Indonesian Android Community [id-android]" 

2. Drawing to MapView Incredibly Slow

In my app I am drawing bus routes on top of a MapView. The routes have
anywhere between a dozen and a few hundred GPS coordinates that
describe the route that the bus takes.


The problem I'm having is that once I draw out all these lines using
drawLines panning/zooming the MapView is incredibly slow (even
clicking the 'Back' button takes a minute to happen).

I'm not sure how relevant it is, but I put in some debug code then
checked the logcat output and the MapView is repeatedly calling the
draw() method of the Overlay whether anything has changed or not. This
is happening several times a second and is causing a massive amount of
garbage collection to happen (2-3 MB every second).

Does anyone have any ideas/suggestions for a method to try and speed
this up?

-- 

3. remote desktop: ada yang pernah coba?

4. Regarding apn

5. Extended battery N1. Mau!

6. OOT iseng malem2...."a must" application in your android device

7. After downloading an application with two Launcher components from the Marketplace, clicking "Open" will cause a crash