The Learning Path of Android

Source: Internet
Author: User

It is necessary to summarize what you have learned in the two days of learning Android.

The JDk is the Java SDK that includes the Java Runtime Environment, Java tools, and Java

Base Class library.

SDK you're talking about Android SDK is an Android development kit

Eclispe is the development platform

ADT is a plugin for Eclispe that allows Eclipse to develop Android

Placing the user interface in an XML file makes the XML responsible for the UI settings, while Java specifically

Responsible for the implementation of the business, so that can reduce the coupling, in fact, we can be short-sighted

Consider the Main.xml file as an HTML page, with HTML tags in html,

Main.xml Using the android tab

Java files can get the interface control of the specified ID through the Findviewbyid method

A complete project: HelloWorld
|-Res
|-value XML-formatted resource files, such as Str.xml

Colors.xml
|-layout Interface Layout File
|-DRAWABLE-HDPI,DRAWABLE-LDPI,DRAWABLE-MDPI magnification

Small and medium picture files

|-src
|-store Java source files

|-androidmanifest.xml is a system manifest file that controls the application

The name
icons, access rights, and other properties.

Add a button to the Main.xml
<button
android:text= "Click Me ah Ah"
Android:layout_width= "Fill_parent"
android:layout_height= "Wrap_content"
/>
Where fill_parent means the size of the whole container, wrap_content root

According to the content to change the size, basic can be put down.

R.java is automatically generated by the AAPT tool, can r.java understand as resource word

Code, each type of resource corresponds to the internal classes of r, such as the string class, ID class, layout class, and so on.

By Uses-permisson in the Mainifest.xml to assert permissions, such as the permission to call.

Several components:
activity--to display the interface via Setcontentview
serice--runs with the background and does not use the user interface
broadcostreceview--listens not for objects in the program, but for components, and other components send broadcast messages by broadcasting
contentproider--is similar to database interaction processing.
intent--a vector that links communication between different components.

However, I think it is better to learn Java may be good, a bit to understand although learning C + +, so the next few days will start to learn some basic java.

The Learning Path of Android

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.