Piglet's Android Getting Started Day 1

Source: Internet
Author: User

Piglet's Android Getting Started Day 1

Android-related background and development environment building

------Reprint Please specify the Source: Coder-pig


Introduction to this section:


With the development of social economy, mobile Internet is becoming more and more hot, mobile app development is extremely hot,

As a soon-to-graduate it cock silk, naturally to a trip to this muddy water, the current mainstream mobile phone system

IOS (Apple), Android (Android), Winphone (Windows); Windphone seems to have no rising momentum;

So the mainstream is the front of the two; as a cock-Silk student dog, can't afford to buy a Mac, just a double-core broken computer;

Just going to get Android ... Just a joke, for two of the pros and cons and just more than the comparison!

This series is a record of some of the things that bloggers learned in Android and the records they encountered.

Can be used as a learning reference or tutorial review, assuming that the text is not well written and what good advice;

Welcome to point out, extremely grateful!





Body:


This chapter studies the Roadmap:





Learning route Analysis:

① knowledge of Android-related backgrounds and Android platform architecture

② builds an Android development environment that uses Eclipse and Android Sudio to

③ familiar with the corresponding IDE's development app process

④ understanding of a number of terms

⑤ Some details about Android process





the birth and development of Android:



The Android system was created by Andy Rubin and was later acquired by Google; The earliest version was Android 1.1.

and now the newest version number is Android L, That 's what we used to say about Android 5.0, the name of the system is named after the dessert.

, for example 4.4 KitKat (Kit Kat Chocolate), at the same time due to the issue of too many version numbers, Android fragmentation is more serious: first, the screen fragmentation,

Not like Apple's phone is a resolution, developed without too much to consider the problem of adaptive screen;

In addition, the use of fragmentation of the system, the market now has a number of different versions are used, 2.3,4.0,4.2 ... so fragmentation issues for Android development brought

A certain trouble!




Android system features and platform architecture:System Features:


1. Application Framework supports the reuse and substitution of builds (the app is advertised with the framework's conventions and other apps can use the module)

2.Dalvik virtual machine: optimized for mobile devices

3. Integrated Browser: Open source WebKit engine

4.SQLite Structured data storage

5. Optimized graphics library, multimedia support, GSM phone technology, Bluetooth, etc.

6. Build with software overlay



Android Platform structure diagram:





Simple parsing of the framework:


The ① Application and Application Framework section uses the Java language

②android when executing: Android Core library + Dalvik virtual machine

Each app is executed separately within a separate Dalvik virtual machine (each app for a Dalvik process)

③ Execution Process:


④dalvik Virtual Machine Features: No need for very fast CPU computing speed and a lot of memory space;

The execution of proprietary. Dex files is based on the register and relies on the core functions of Linux




Construction of the development environment:

2 Select any one of them will be able to! Enter Portal to learn to create your own app


①eclpise + ADT + SDK: Portal

②android Studio: Portal



familiar with the IDE development app process




analysis of related terms:


Dalvik : Android-specific virtual machines, unlike JVMs, Dalvik virtual machines are ideal for use on mobile devices!

AVD " (Android virtual machine): Android emulator

ADT :(Android development tools) Android development tool

SDK :(Software Development Kit) Software Development Kit is a collection of tools for Android, platform architecture, etc., such as Adb.exe

DDMS :(Dalvik Debug Monitor Service) Android debugging tool

adb : Android Debug Bridge, in the SDK Platform-tools folder, the function is very much, and so will slowly introduce

DX Tools : Convert. class to. dex file

AAPT :(Android Asset packing tool), Android resource packaging tools,

R.java File : The AAPT tool is self-generated according to the resource file in the app and can be understood as a resource dictionary

Androidmanifest.xml: App Package name + Component Declaration + Program-compatible minimum version number + required permissions and other program configuration files



* Other miscellaneous


①ADB related directives:

PS: The following commands need to be entered under the command line, and will come to platform-tools under the SDK's folder.

Of course, you can also configure path, you can directly use the following ADB command




② Android App package & installation process:



Software Installation process for ③android app:





Piglet's Android Getting Started Day 1

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.