Android USB for MTP

Source: Internet
Author: User

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 ()

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.