Android Entry record (i)

Source: Internet
Author: User

---restore content starts---

First of all, this is the first blog in my life, perhaps it is not a blog in the strict sense, but also represents something.

Preface

Often when we start to learn a new language or course, we meet a variety of problems, such as: the environment is facing problems, resources do not know where to download, the code is impossible to do, and even do not know how to run.

So there was an article--a record of my Android entry, and a solution to a variety of problems.

First, from the search for resources.

the first section of the development environment construction

Android Development first needs to build the operating environment, they are

1.jdk:java Development Kit, because Android uses Java development, and other parts of the Android application development tools also rely on the Java development environment, so you must install the JDK.

2.Android SDK tools and Platform tools: a set of tools for testing and debugging applications.

3.Android Studio: A suite of integrated development tools for Android development.

1.1JDK Download and Installation

The JDK can download and install the Java Development Kit (JDK8) via www.oracle.com.

Download to local, after installation is complete:

1. By Win+R starting the Windows operating system 运行 panel;

2. Enter in the panel cmd , start the Command line window;

3. In the Command Line window, enter java -version ;

If you can see something like this at this point, the JDK installation is successful.

C:\users\xxx>java -version
Java version "1.8.0_66" java (TM) SE Runtime Environment (build 1.8. 0_66-b18)
Java HotSpot (TM) -bit Server VM (build 25.66-b18, mixed mode)

1.2Android Download and Installation

Android studio:developer.android.com/sdk/can be downloaded from the Android developer website.

If you still have questions, you can visit the URL developer.android.com/sdk/to ask for help.

Ps. Android Studio comes with the latest version of the SDK and emulator system images, and if you want to test your app on an earlier version of Android, you'll also need to download additional related tool components. Location: Android studio→tools→android→sdk Manager.

Available from the bottom left: Launch Standalone SDK Manager to enter and download.

---restore content ends---

First of all, this is the first blog in my life, perhaps it is not a blog in the strict sense, but also represents something.

Preface

Often when we start to learn a new language or course, we meet a variety of problems, such as: the environment is facing problems, resources do not know where to download, the code is impossible to do, and even do not know how to run.

So there was an article--a record of my Android entry, and a solution to a variety of problems.

First, from the search for resources.

the first section of the development environment construction

Android Development first needs to build the operating environment, they are

1.jdk:java Development Kit, because Android uses Java development, and other parts of the Android application development tools also rely on the Java development environment, so you must install the JDK.

2.Android SDK tools and Platform tools: a set of tools for testing and debugging applications.

3.Android Studio: A suite of integrated development tools for Android development.

1.1JDK Download and Installation

The JDK can download and install the Java Development Kit (JDK8) via www.oracle.com.

Download to local, after installation is complete:

1. By Win+R starting the Windows operating system 运行 panel;

2. Enter in the panel cmd , start the Command line window;

3. In the Command Line window, enter java -version ;

If you can see something like this at this point, the JDK installation is successful.

C:\users\xxx>java -version
Java version "1.8.0_66" java (TM) SE Runtime Environment (build 1.8. 0_66-b18)
Java HotSpot (TM) -bit Server VM (build 25.66-b18, mixed mode)

1.2Android Download and Installation

Android studio:developer.android.com/sdk/can be downloaded from the Android developer website.

If you still have questions, you can visit the URL developer.android.com/sdk/to ask for help.

Ps. Android Studio comes with the latest version of the SDK and emulator system images, and if you want to test your app on an earlier version of Android, you'll also need to download additional related tool components. Location: Android studio→tools→android→sdk Manager.

Available from the bottom left: Launch Standalone SDK Manager to enter and download.

Section II creation of the app

First we start a new Android Studio project

Then fill in the name of the app in application name,

Fill in the name of the package at company name, before which you can add the corporate domain name, such as: android.bignerdranch.com. Of course, you can not add

The last place to store it is to see personal habits.

Next, because I'm a beginner, I don't need a TV and other apps like a tablet, so just choose Next.

Then we came to the template Selection page, because I was a novice, so first select the empty Activity, and next

Finally, we give the activity sub-class name, note tick Generate layout File, so the layout will also be generated.

Ps. The subclass name activity suffix, although not required, is best followed by this named specification.

Then finish, the project is built, the first project may be a little slow, wait for the back will be much faster.

When the project is completed and needs to be debugged, we can click on the button and select the virtual machine, or the phone to debug.

Add the following steps to debug your phone.

First connect your computer with a USB cable and turn on your phone's USB debugging.

We will appear on this page option

Then we select and then double click to run.

Android Entry record (i)

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.