Two weeks of learning and comprehensive android Development

Source: Internet
Author: User

After one year of study and communication with colleagues, I have summarized my personal android learning process. If you have any mistakes or errors, I hope you can give me more advice! Or you can leave a message to my mailbox: 508181017@qq.coom nonsense, first


WEEK 1:
1, (the first day) Understand android, and configure the development environment (can refer to the http://blog.csdn.net/icqapp/article/details/21228743)
2. (The next day) 1) understand the structure of each file for developing an android Application and its significance.
Src --- compile a Java source code file
Libs --- package for storing related Class Libraries
Res --- all external resource files (images, data files, etc.) required by the android Application)
-> The res/drawable application contains an image, icon, or configuration file.
-> Res/layout File
-> Key-value pairs to be referenced in res/Values applications. These XML files declare arrays, colors, measurements, and strings.
The xml file AndroidManifest. XML contains the meta information of android applications and is an important file in every android project. It contains activity (behavior), view (view), service (service) and other information.
2) understand the lifecycle of android
3. (the third day) Write layout controls: If you have learned about C # desktop applications, you should extend them to android controls, even if you have never understood C #, you can also extend the web interface control to the android control,
The specific implementation steps can be: view --- find --- drag --- write
View: It indicates that the control is used to understand what the control is,
Find: Find the corresponding control on the left side of the android Control Panel
Drag: select the corresponding control and send it to the layout file (the system will automatically generate a series of code)
Write: Write the desired effect in the layout file or activity.


4. (4, 5 days) Get a preliminary understanding of ListView, GridView
Loading local static data involves configuration and encapsulated object classes.
Steps:
(1) Write a form class and create a corresponding layout file under the layout File
(2) Compile the entity classes that need to be encapsulated into objects,
(3) Compile the subitem layout file of listview,
(4) Compile the listview adapter based on the ListView subitem layout File
(5) bind data to the subitem through the adapter and then bind the subitem to the ListView control.


Week 2:
1. Learn how to load data with multiple threads in the sixth and seventh days. There are roughly four types
1) Activity. runOnUiThread (Runnable)


2) View. post (Runnable); View. postDelay (Runnable, long)


3) Handler


4) AsyncTask
2. Learn json or xml in the last day. It can be understood as a data exchange format. A simple json application generally uses the second-to third-level structure. when parsing json data formats, there are no more than JSONObject, JSONArray
Commonly used json format address: http://jsonformatter.curiousconcept.com or http://tool.oschina.net/codeformat/json
1) object format: {key name: key value} (single key or attribute );
{Key name 1: Key value 1, key name 2: Key Value 2, key name n: key value n} (Multi-key or attribute)
For example: {"name": "James"} (single key );
{
"Name": "Zhang San ",
"Age": "20 ",
"Heigh": 170
}
2) object set format:
[
{Key name 1: Key value 1, key name 2: Key Value 2, key name n: key value n },
{Key name 1: Key value 1, key name 2: Key Value 2, key name n: key value n },
{Key name 1: Key value 1, key name 2: Key Value 2, key name n: key value n}
]
For example, a class has multiple students:
[
{
"Name": "Zhang San ",
"Age": "20 ",
"Heigh": 170
},
{
"Name": "Li Si ",
"Age": "20 ",
"Heigh": 166
},
{
"Name": "Wang Wu ",
"Age": "19 ",
"Heigh": 156
}
]

3. (9, 10 days) return json data remotely and bind it to the ListView.
Resource:Http://download.csdn.net/detail/shi508181017/7038937




4. (11th days) to operate the android local database sqlite, we need to use the sqlite editor here. I personally use SQLite Expert Personal 3, and the operations are nothing more than SQLiteDatabase, SQLiteOpenHelper and other classes.


5. (12th days) after remotely responding to the data, the data is cached to the local device and the local file is read without network connection by using sqlite.
(Source code will be sent later)
















































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.