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