"1" Android learning note "First Android app"

Source: Internet
Author: User

Java JDK & configuration Java System variables

Java JDK

Please install this in your own Baidu

Configuring Java System Variables

1. Open My Computer--Properties--advanced--Environment variables

2. New System variables Java_home and Classpath

Variable name: Java_home variable Value (JDK installation directory): C:\Program files\java\jdk1.7.0

Variable name: CLASSPATH variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

3. Select the environment variable named "path" in "System variables", double-click the variable, add the absolute path of the bin directory in the JDK installation path to the value of the path variable, and delimit the semicolon with the half-width and the existing path. Variable name: Path variable value:%java_home%\bin;%java_home%\jre\bin;

This is the Java environment configuration, the configuration is completed directly after the eclipse, it will automatically complete the configuration of the Java environment

Second, download Eclipse & ADT & Android SDK

I share the packaged good, do not directly download these things directly can be used

If you feel insecure, you can download it yourself.

(Determine the version of your system 64-bit Eclipse corresponds to the 64-bit Java JDK, otherwise it will be an error)

Third, create an Android project

Key location comes, first need to create an Android simulator

After all is installed, there are several options on the Eclipse toolbar. Select Android Virtual Device mangager

    

Because I created one beforehand so please ignore, click on the right of Create below

    

    

    

Select the emulator you just created click Start

    

Then there will be an interface like this, this is the Android simulator, this simulator has a normal boot time of about 30 seconds of appearance will appear

    

If this interface does not appear please check these for several reasons, if it has started normally, please ignore the following content

1. Check if the Android SDK Manager ARM EABI v7a System Image is installed.

      

2. Change the emulator's memory and adjust it to start up

      

      

Create a project

Click Eclipse's Flie > New > Android application Project

      

Next, say the file path

      

The next step is to set the different icons in different locations.

      

Next this is what kind of activity is selected by default

      

Next, the startup file Main method modifies the related name by itself

      

The first project is created

      

Right-click on the Run as > Android appliction program name

If you are prompted No compatible targets were found. Wish to a add new Android Virtual Device

This is not a suitable virtual machine, need to create a new phone virtual machine, because some virtual machines and the choice of matching is not on

The project I created is the 4.0 version of the corresponding emulator also needs to be 4.0 version of the

The complete effect is as follows

      

"1" Android learning note "First Android app"

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.