How to debug an android application with a real machine

Source: Internet
Author: User
Tags acer

This article focuses on how to debug Android apps using real machines. Before we start, we need to be clear about one thing: using a real machine to debug an Android application is essential, and can be said to be necessary! The reasons are mainly but not limited to the following points:

1 The simulator does not simulate all the functions of the handset. For example: The simulator does not support USB connection, video capture, audio input, Bluetooth and so on, if you develop the application of some function simulator can not simulate, at this time can only use the real machine to test;

2 If you are developing an application that is about to be released, be sure to test it with a real machine. Just imagine, you develop the application even if you do not use, to experience, how can you guarantee that others will like it?

3 If you think the simulator is running very slowly, you can try to buy a real machine to do the development test.

Well, whether you want to debug Android apps with a real machine for any of the above reasons, at least our goals are the same. Here are the steps necessary to debug an Android application through a true machine:

Installing the USB driver

If you just want to copy files from your computer to your phone's memory card, you just need to connect your phone to your computer via a USB cable, and you don't need to install the driver, but if you want to debug your application with a real machine, you must install the USB driver. The following is the original version of the official API documentation:

' If you are are developing on Windows and would ' to connect a android-powered device to test your applications, then Need to install the appropriate USB driver. ”

So where do I download the USB driver that my phone can use? Download it from your phone manufacturer's official website, of course. Here are some common mobile phone manufacturers to provide the driver download address, find your phone manufacturer, to download the corresponding driver, and then installed on the computer can be.

Acer http://www.acer.com/worldwide/support/mobile.html

Dellhttp://support.dell.com/support/downloads/index.aspx? C=us&cs=19&l=en&s=dhs&~ck=anavml

foxconnhttp://drivers.cmcs.com.tw/

Fujitsu Toshiba http://www.fmworld.net/product/phone/sp/android/develop/

Garmin-asus https://www.garminasus.com/en_US/support/pcsync/

Htchttp://www.htc.com

Click on the Support tab to select your Products/device. Different regions would have different links.

Huaweihttp://www.huaweidevice.com/worldwide/downloadcenter.do? Method=list&flay=software&directoryid=20&treeid=0

KT techhttp://www.kttech.co.kr/cscenter/download05.asp

Kyocera http://www.kyocera-wireless.com/

LGE http://www.lg.com/us/mobile-phones/mobile-support/mobile-lg-mobile-phone-support.jsp

motorolahttp://developer.motorola.com/docstools/usb_drivers/

Pantechhttp://www.isky.co.kr/cs/software/software.sky?fromurl=index

Samsunghttp://www.samsung.com/us/support/downloads

sharphttp://k-tai.sharp.co.jp/support/

SK telesyshttp://www.sk-w.com/service/wdownload/wdownload.jsp

Sony Ericsson http://developer.sonyericsson.com/wportal/devworld/search-downloads/android

ztehttp://www.zte.com.cn/cn/products/mobile/services_support/index.jsp

Turn on the USB debug mode on the phone

On the phone, click the Menu function Key "menu"-"Settings"-"Application"-"development", and then check "USB debugging", so that the mobile phone's USB debugging mode.

Description: If you want to use the "91 mobile phone Assistant", "Pea Bud" and other mobile phone synchronization software, but also need to set up like this (Turn on USB debugging).

Related Article

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.