Android learning path

Source: Internet
Author: User

Android learning path

It is necessary to summarize the things learned during the past two days to learn about android.

 

JDk is a java development kit that includes the Java Runtime Environment, Java tools, and Java

Base class library.

Android SDK is an android sdk.

Eclispe is a development platform

ADT is the eclispe plug-in that enables eclipse to develop android

Put the user interface in the XML file so that XML is responsible for UI settings, while JAVA

Responsible for business implementation, which can reduce coupling. In fact, we can be nearsighted.

The main. xml file is treated as an HTML page. The difference is that HTML tags are used for HTML,

The Android tag is used for main. xml.

The Java file can use the findViewById method to obtain the interface control of the specified ID.

A complete project: HelloWorld
|-Res
|-Value: resource files in xml format, such as str. xml

Colors. xml
|-Layout
|-Drawable-hdpi, drawable-ldpi, and drawable-mdpi Amplification

Small and Medium image files

|-Src
|-Stores java source files

|-AndroidManifest. xml is a system configuration file used to control applications.

Name
Icon, access permission, and other attributes.

Add a button in main. xml
Android: text = "Click me"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
/>
Fill_parent indicates the size of the entire container.

The data content can be changed.

R. java is automatically generated by the aapt tool. R. java can be understood as a resource word.

Class, such as string, id, and layout.

Use uses-permisson to declare permissions in mainifest. xml, such as the call permission.

Several components:
Activity -- display the interface through setcontentview
Serice
Broadcostreceview-the listener is not a program object, but a component. Other components send broadcast messages through broadcast.
Contentproider -- similar to interactive processing of databases.
Intent-a carrier for communication between different components.

However, I think it may be better to learn JAVA first. Although I have learned c ++, I will learn basic java in the next few days.

Related Article

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.