Android: starts from scratch and starts from scratch

Source: Internet
Author: User

Android: starts from scratch and starts from scratch
I. JDK (no installation required)
1. Download the appropriate jdk
2. Configure the environment variable to add a system edge = Variable
JAVA_HOME = D: \ Java \ jdk1.8.0 _ 91
CLASSPATH =.; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ jre \ lib \ rt. jar
PATH = D: \ Java \ jdk1.8.0 _ 91 \ bin)
3. Verification
Run java-version in any directory


2. Run eclipse ADT (no installation required)
1. Configure an environment variable ANDROID_HOME = D: \ Java \ adt-bundle-windows-x86_64-20140702 \ sdk
2.run eclipse.exe directly. 3. Download the simulator (the haima simulator is used), open the simulator, debug it, open eclipse, switch to the editing view, and select DDMS

If the connection is successful, check

4. Create a project (helloWorld)

1. Select file> new> Android application project to create an android project, and then specify the relevant project information and configuration (for example)

      

2. Click next until, as shown in figure

      

After the project is finished.

5. Android project directory structure

Src: source code

Gen: R file (pointer to a java resource file)

Bin: apk File

Assets: asset directory

Libs: Additional jar packages

Drawable: stores Android image resources.

Layout: stores the Android layout,

Values: String

Android configuration file: the four components (Activity broadCastReceiver service ContentProvider) in Android must be configured in the configuration file.

  

 

 

  

 

 

 

 

 

    

 

     

  

   

 

 

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.