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. Update 1 --- OOT: Saya Tidak Menjual BB 9100

Barusan coba Googling dengan kata kunci "herry setiadi wibowo penipu",
nemu link berikut ini: http://archive.kaskus.us/thread/3198120



Salam,


Herry SW

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

2. Poor roaming performance ! Is it an Android bug ?

This is a little off topic, but yet, if you might have noticed(just that
I've noticed) there is a DNS cache error in all of google's products that
connects to the internet!

Not sure of Chrome - but Android sure has a problem - Dont have the issue
number here but yeah, it is STILL there.

What version does your phone run?

Gyan

-- 

3. Psst yahoo mail dan messenger resmi dah keluar

4. CursorAdapter notifyDataSetChanged doesn't work? What am I doing wrong?

5. Evo vs iphone4

6. XMPP

7. crashing map