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.