Android3.1 has three additional packages: Android. Hardware. USB, Android. MTP, and android.net. RTP.
(1) Android. MTP
The connected camera and other devices can be directly connected using PTP (Image Transmission Protocol) or MTP (media transmission protocol), and upper-layer apps can receive notifications, to manage the files, storage, and transmission of these devices.
It provides mtpconstants that define PTP and MTP, describe the mtpdevice of the PTP or MTP device connected to the USB host bus, and encapsulate the mtpdeviceinfo of the MTP device information, and mtpobjectinfo of the object information, and mtpstorageinfo of the storage unit information on the MTP device.
(2) Android. Hardware. USB
Allows you to connect to the peripheral data communication of the android power supply device through USB. The central category is USB Manager, which provides communication methods to identify and use USB devices and USB accessories. ApplicationProgramYou can obtain a USB Manager instance for querying, managing, and communicating the list of connected devices or accessories.
(3) android.net. RTP
Built-in RTP (real-time transmission protocol) protocol stack, which can be used by applications to manage interactive data streams. Applications provide VoIP, one-click access, conferencing, and audio streams. These APIs can be used to start sessions, transmit, or receive data when the Network is available. The simplest use is a single remote terminal and a local device.
========================================================== ========================================================== ========================
Android4.0 uses the MTP protocol to communicate between the SD card and the PC. The MTP driver is provided in Windows 7 and can be used directly. The driver must be installed in Windows XP. First, upgrade Windows Media Player of the XP system to wmp11. The latest version comes with the MTP driver. If the file cannot be identified after the upgrade, you need to manually modify the INF file at c: \ windows \ INF \ wpdmtp. INF. View the vid and PID of your MTP device and add the following content:
[Generic. ntx86]
% Genericmtp. devicedesc % = MTP, USB \ ms_comp_mtp
% Genericmtp. devicedesc % = MTP, USB \ vid_xxxx & pid_xxxx & mi_00
........................................
[Generic. ntamd64]
% Genericmtp. devicedesc % = MTP, USB \ ms_comp_mtp
% Genericmtp. devicedesc % = MTP, USB \ vid_xxxx & pid_xxxx & mi_00
Then you can install the driver.
Http://blog.csdn.net/yiyaaixuexi/article/details/6542702 # ()
Http://hi.baidu.com/aokikyon/blog/item/e77161e7ae190d31b83820e1.html ()