Android Development Foundation and Environment configuration

Source: Internet
Author: User

2011 bought the first Android operating system mobile phone, then the momentum is full of HTC Magic (incredible), then the idea is to learn the development of smart phones, but for various reasons, objectively the company's project is too busy, busy project management, team building, customer on-line, analysis and design, Write code, has been doing traditional business management system, subjective or insufficient pressure, no time to dabble in the smart phone this piece. Time Flash, this year has 33 years old, according to China's national conditions, the technical route career estimate up to 7, 8 years of time, seize the time to take advantage of years of development experience, quickly fill the mobile development of this piece of content.

This year, the Mid-Autumn festival, with a day to configure the development environment, according to my study habits, first lay a good foundation, and then to cover high-rise, high-rise flat, began to learn.

Andriod is a Linux-based development of the source code operating system, mainly used in mobile devices, such as smartphones and tablets, led and developed by Goodle Corporation and the Open Mobile Alliance. October 2003, Android and the team was established, 22 months later by Goodle Company acquisition, September 2008, Goodle officially released 1.0 system, 2014 the latest version is 4.4. Time Flies, Android has 10 years of history.

Andriod's system architecture, like other operating systems, employs a layered architecture that is divided into four tiers, from high to low to the application layer (applications), the application framework layer (application framework), and the System runtime layer ( Libraries) and the Linux kernel layer (inuxkernel), where the third tier also includes the Android runtime environment.

1. Application Layer

Android is published along with a core application package that includes e-mail clients, SMS short message programs, calendars, maps, browsers, contact management programs, and more. All of the applications are written in Java.

2. Application Framework

Developers have complete access to the API framework used by the core application. The application framework architecture is designed to simplify the reuse of component software, which, like the. NET Framework, provides many class libraries.

    1. An extensible view (views) can be used to create applications, including lists (Lists), networks (Grids), text boxes (texts boxes), buttons (Buttons), and even web browsers that can be embedded.
    2. Content Providers enables applications to access data from another application, such as a contact database, or to share their own data.
    3. A resource manager (Resource Manager) provides access to non-code resources, such as local strings, graphics, and hierarchical files (layout file).
    4. A notification Manager (Notification Manager) enables applications to display customer notification information in the status bar.
    5. An activity manager is used to manage the application lifecycle and to provide commonly used navigation fallback functionality.

3. System Running Library

Android contains a number of C + + libraries that can be used by different components in the Android system. They provide services to developers through the Android application framework. Mainly includes the System C library, Media Library, which supports the playback of many popular audio video formats, Surface Manager, Libwebcore, an up-to-date web browser engine to support Android browser and an embeddable Web view, 3D libraries , the library can use hardware 3D acceleration, FreeType, bitmap and vector font display, SQLite, a small relational database.

4. System kernel

Android's core system services rely on the Linux kernel, such as security, memory management, process management, network protocol stacks, and drive models. The Linux kernel also acts as a hardware abstraction layer between hardware and software stacks.

After reading the architecture of Android, suddenly feel a lot less difficult, foreigners have the core modules packaged well, we just learn to apply, foreigners are interested in learning, many Chinese are to work and study, so they can do a lot of innovative work, we can make the application has been very good.

Android Development language is Java, is also an object-oriented language, C # is the later language, so many features and Java almost, learning should be less difficult. The first step is to configure the development environment, before the Internet to see a lot of information, configuration is very cumbersome, need to download JDK, Eclipse, ADT (Android development Tools), the Android SDK, and then need to follow the steps to be careful to operate in order to succeed, As soon as this approach was completed, a new approach was seen on the internet, and ADT Bundle for Windows,goodle Android's official integrated IDE, already contains eclipse, and the plugin is already integrated It solves the complex problem of most eclipse configuration Android development environments, which is estimated to be learning from Microsoft, a powerful, simple IDE, reduce complexity and improve productivity.

First step: Installation of the Java SDK

I downloaded Jdk-8u20 is Oracle2014 August 20 The latest release of the release Java8,java SE Development Kit,java Desktop Edition is enough, do not install Java EE. Installation of this step is essential, the complexity is slightly higher than the need to configure a series of complex environment variables, the success of the flag is the command line tool cmd input Java and javac have the appropriate prompt. Java_home: Represents the directory where Java resides; path: A list of paths for searching executables, searching for executables along each path until they are found, and errors are not found. CLASSPATH: The path list is the class used to search for Java compilation or runtime, both path and CLASSPATH specify a list of paths, separated by delimiters between the items in the list (that is, the individual paths).

Java_home Java Installation path C:\Program files\java\jdk1.8.0_20

Path%java_home%\bin;%java_home%\jre\bin

CLASSPATH.; %java_home%\lib;%java_home%\lib\tools.jar;%java_home%\lib\dt.jar;

Step Two Install Adt-bundle-windows

This is an integrated development environment for Android, after extracting the downloaded compressed package, it contains two directories and one file, one directory is Eclipse, which contains the installed Eclipse and ADT, the other is the SDK, which contains the installed Android Each version of the SDK. Run the SDK Manager.exe first, install the various versions of the SDK, this takes a long time, I installed 10 hours, put more than 4.0 of the version is installed, the folder about 10G.

Step three, open Eclipse, create the AVD

Select, click Start.

Then create the first application Hello World,

The classic Hello World runs out, the Android Foundation and the environment are built, and the. NET Development Foundation is easy to learn, but it takes a lot of time and effort to thoroughly understand this part of the content.

Android Development Foundation and Environment configuration

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.