Today is the first day to officially start learning Android. A month ago, after setting up the environment and running Hello world, I never paid much attention to it. I chose the book "android SDK development example book 2". Today I will introduce chapter 3 and 23ProgramAfter I ran it all over, I felt that it was quite good to get started with the example. After all, it was not very difficult to understand the basics of Java, and the simulator was too slow for the only disturbing thing, should I upgrade my configuration ~~.
Let's talk about what we 've learned today and master the basic architecture of Android applications: the src directory is of course a Java class (today we mainly master activity ), the res directory stores resource files (image resources + various configuration files). At present, asserts is not clear about what it is, Khan! What is interesting is that the layout of Android is fully implemented using XML (visual editing is supported, but it is not very convenient). Components in the program that use ID to obtain responses (today they all use R. layout. [ID] to obtain, there must be other ways ). In addition to layout, the string constants used in the program are also written to the XML file under the values directory. This design is certainly more flexible than hard-code, but it also adds development complexity, the benefits are not very obvious at present (don't try it out ).
Written for one dayCodeIn the evening, you should take a look at the basics, which is the most lacking in the book "example book 2". Because there are no book resources around you (the summer library is closed, 555 ), decided to read the official documents on the http://developer.android.com, after all this is the first piece of information, the surprise found that the website was unblocked, haha, this dare to be good. The "Application Fundamentals" Translated by myself is attached. please correct me if the translation is not in place because it is still a newbie.
Http://developer.android.com/guide/topics/fundamentals.html
Http://www.cnblogs.com/codingmyworld/archive/2011/07/17/2108460.html