Build the Android environment and write the first android program.

Source: Internet
Author: User

Build the Android environment and write the first android program.

Build an Android Environment

(1) required materials: eclipse, ADT, and SDK

:

ADT-15.0.0
Android-sdk-windows
Eclipse-jee-helios-win32
Jdk-8u65-windows-x64 http://pan.baidu.com/s/1o7Puo8y

(2) Installation Steps

The first step: Install ADT

Double-click eclipse and click OK.

Click help-> install new software

Click Add and then archive to put undecompressed ADT paths in Work with (as shown in)

Then select

Click next twice and select I accept... Click finish to complete installation and restart eclipse

The second step: Install the SDK

Go to eclipse

Click window> preferences> Android on the left and choose Android 4.0 on the right. In the sdk location, place the decompressed sdk in ()

---

Click OK to complete installation

The third step: Install AVD manager

Click window> AVD manager> new> enter relevant information ()

Click create AVD and the page appears.

Click Launch to see the following page

Write a hello world Program

The first step: File-> new select new project (as shown in)

Enter the project name

Select 4.0 ()

New package name, split

Click project name-> res-> layout-> Create Android XML File

Write as follows:

Click src-> com. cvit-> default. java file ()

T

The second step: Create an apk

1)

 

 

 

 

 

 

 

 

 

After creating an apk, You can import it to your Android phone,

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.