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 Mac, only a double-core computer broken;

Only to get Android ... But are all joking, for two of the pros and cons are not too much 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 reference or a tutorial to view, if 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 one

③ familiar with the 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 latest version is Android L, That 's what we used to say about Android 5.0, the name of the system is named after the dessert.

, such as 4.4 KitKat (Kit Kat Chocolate)




Android system features and platform architecture:System Features:


1. Application Framework supports the reuse and substitution of builds (the app is published 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 Runtime: Android Core Library set + Dalvik virtual machine

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

③ Running Process:


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

While running a proprietary. dex file is a register-based implementation, it relies on the core functionality of Linux




Construction of the development environment:

Choose one of the 2 free! Go to the 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 Platform-tools directory of the SDK, a lot of features, etc. will be introduced slowly

DX Tools : Convert. class to. dex file

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

R.java File : Automatically generated by the AAPT tool according to the resource file in the app, which can be understood as a resource dictionary

Androidmanifest.xml: App Package name + Component Declaration + Program compatible minimum version + required permissions etc program configuration file



* Other miscellaneous


①ADB related directives:

PS: The following commands need to be entered at the command line, and Platform-tools in the directory of the SDK

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




② Android App package & installation process:



Software Installation process for ③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.