Android Project Study Notes: how to deploy applications on a real machine

Source: Internet
Author: User

Development Environment:

Win XP + eclipse-jee-helios (version 3.6) + ADT (version 10.0.1) + Android SDK (version 10 );

Test environment for simulators and real machines: Android2.2

Some applications need to be deployed on real mobile phones for testing. How can we deploy the developed applications on real mobile phones? The procedure is as follows:


1. Install the mobile phone driver on the PC.

2. Use a USB cable to connect the mobile phone to the USB interface of the PC.

In the Eclipse development environment, use Window-> Show View-> Other-> Android to open the device View.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/101241B14-0.png "title =" 4.png"/>

Figure 1

In this case, the view of the real mobile phone will appear in the device view in the development environment. 2 is the view of the test mobile phone.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1012415J3-1.png "title =" 5.png"/>

Figure 2

Note: If the device monitoring view does not have a real machine view, the installation of the mobile phone driver fails. Of course, this problem generally does not occur. What guard and Butler on the PC can solve these problems.

After the above steps are completed, you can use the screen monitoring tool to observe the real machine, 3

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1012415I0-2.png "title =" 6.png"/>

Note: download and install the screen monitoring tool:

  • In.

  • Decompress the file and copy the asm in the compressed package. copy the jar file to the sdk \ platform-tools \ directory. put the command tool and adb in the same directory. run (double-click asm. jar) and select the real machine device.

The method for deploying a simulator is similar to that for deploying a simulator. Instead of selecting a simulator, you can choose a real test mobile phone. The running result is as follows:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1012413542-3.png "title =" 7.png"/>

In this case, the phone number can be called. The above is how to deploy a developed application to a real mobile phone.

This is only when developers deploy the application to a real machine during testing. How can they publish the developed application for users to download and install it?

1. Package the software into a. APK file.

In the Eclipse development environment, select project> Export> Android> Export Android Application (Export as Android Application, you need to sign this software. Instead of using the debug key provided by the system, you must sign it with our own key (representing our identity, prove that this software was developed by ourselves or by our company. The procedure is described as follows:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/101241F49-4.png "title =" export as Android app "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/101241D59-5.png "title =" exported project "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1012415529-6.png "title =" Key location and password "/> 650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1012412317-7.png "title =" certification information "/>

The license file is placed in the mobile phone's SDCard. on the mobile phone, install the app on the mobile phone through the file browser.





This article from the "Flowers bloom" blog, please be sure to keep this source http://020618.blog.51cto.com/6098149/1293082

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.