Android Mastery Tutorial-first section introduction to Android

Source: Internet
Author: User

Objective

Hello everyone, to bring you Android精通教程-第一节Android入门简介 an overview, I hope you like

One sentence per day

If life were predictable it would cease to being life, and being without flavor.
---Eleanor Roosevelt

Installation of the Getting Started tool

The first step: to download the Friends note, first read the tutorial about a general, before downloading Android studio, first install the JDK and ide,android SDK

Step two: download JDK, provide JDK 9 address:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
Provide JDK 8 address:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Step three: first login to the Android Studio website address
Https://developer.android.google.cn/studio/index.html
Next I offer the Chinese community Android Studio:
http://tools.android-studio.org/index.php

I downloaded the tutorial with the WINDOWS64 bit example:
Click Android-studio-ide-171.4408382-windows.exe No android SDK to download
Then click on the software you downloaded to install it.

Fourth Step:
To configure the environment variable java_home, proceed as follows:
Computer (My Computer)----Properties----Advanced system settings----environment variables----System variables
The "new":

Environment variables:
Java_home: D:\Java\jdk1.8.0_25
CLASSPATH:.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Path:;%java_home%\bin;%java_home%\jre\bin

Common shortcut keys

CTRL + C: Copy
Ctrl + V: Paste
Ctrl+x: Cut
Ctrl+d: Copy a row below the current line
Ctrl+y: Delete When moving forward
Ctrl+g: Shortcut line number positioning
Ctrl+e: View recently opened files
CTRL + N: Find the class name, file name
Ctrl+f: In-Class search
Ctrl+r: Find and replace
Ctrl+alt+l: Formatting code

Component

Activities, fragments, views, intentions, services, and content providers

activity, which is a user interface screen. An app can define one or more activities to handle the different stages of an application.

fragment (Fragment), which is an integral part of the activity, is usually displayed on the screen, but not necessarily. With clips, you can make your application easily adaptable to different screen sizes.

view, which is the smallest user interface unit, can be included directly in the activity or in the active fragment. Views can be created in Java code, but the better way is to use XML layouts to define them.

Intent (Intent), is a behavioral description mechanism (such as selecting photos, calling, etc.). In Android, almost everything is done with intent, which gives us a lot of opportunity to replace or reuse components.

Serviceis a task that runs in the background without the user having to interact directly with it.

A content provider , a set of data and a custom API for reading them, is the best way to share global data between apps.

The following important, in class not to learn, here all learn, learn on their own

Android Studio2.0 Tutorial from Getting Started to mastering Windows Edition-installation article

Android Studio2.0 Tutorial from Getting Started to mastering Windows Edition-Introductory article

Android Studio2.0 Tutorial from Getting Started to mastering Windows Edition-improve the article

Android Studio2.0 Tutorial from getting Started to mastering Mac Edition-installation article

Android Studio2.0 Tutorial from getting Started to mastering Mac Edition-Getting Started

Android Studio2.0 Tutorial from getting Started to mastering Mac Edition-improve the article

To give a man to fish is better to teach

(1) Learning Android requires a positive mindset

(2) Focus on practice

(3) Apply

(4) Multiple Knock code

Summarize
    • This article speaks about Android Mastery Tutorial-the first section of Android Introduction, if you have a better understanding, welcome to communicate
    • Positioning: Sharing Android & Java knowledge points, interested to continue to follow

Android Mastery Tutorial-first section introduction to Android

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.