How to teach Android
Welcome reprint, Reprint please indicate the original address: http://blog.csdn.net/lavor_zl/article/details/51217319, thank you.
1. Java Knowledge Reserve
This knowledge point does not do the key explanation:
For the students who have the basic recommendation read "Java Programming ideas", consolidate the foundation, check out the complete, understand and familiar with more detailed knowledge points.
For those who do not have the basis of the students recommend reading a Java-based books, after reading can continue to read the "Java programming ideas" to enhance their own.
For self-thought time is abundant, as long as the basic science solid good recommendation see "Crazy Java Handout", this book is really thick, but the explanation is particularly detailed.
2. Android Basic Learning 1. Basic UI Learning
The use of these basic UI API Google's website has given a good example. For students who can't get on Google, refer to http://www.android-doc.com/reference/packages.html
For example, I want to see how the button uses:
In the top right corner of the site, enter "button" in the Search bar, and then the following prompts for some classes with "button" keyword, we can click on the class we want to see the basic use of this class and its API.
2. Four Component Learning
Activity learning can be referred to in these blog posts:
Activity life cycle
Four kinds of launchmode of activity
Task related to activity
Service learning can be referenced in this blog post:
Service Full resolution
Broadcastreceiver's study can refer to this blog post:
Broadcastreceiver Application Explanation
ContentProvider's study can refer to these blog posts:
ContentProvider's reading and writing contacts
ContentProvider Read and write short message
Create and invoke your own ContentProvider
The link between the four components Intent's study can refer to this blog post:
Intent Application explanation
Note: By default, the service is running in the main thread, and by default the Broadcastreceiver is in the Android system and does not die as the application shuts down.
3. Five large-format learning
A brief introduction to the five major layouts can be found in the following blog posts:
LinearLayout, Absolutelayout
Relativelayout, Framelayout
Tablelayout (i)
Tablelayout (b)
Five layouts in detail use can refer to this blog post:
Android system five layout detailed layouts
4. Friendly and interactive learning
Here are a few things to learn about this:
Learn about three types of menus in the menu (menu) in Android
Android ListView
Android dialog usage
Android Toast Encyclopedia (five scenarios) build your own toast
Several uses of notification!
Use of Popupwindow in Android
5. Data storage
- The memory store stores data in memory and reads the fastest but cannot be stored permanently.
- The file store stores the data as files on disk through the IO stream of java.
- Sharedpreferences stores data on disk as a fixed-format XML file.
- Database storage typically refers to storing data in a SQLite database that comes with Android.
- Networked storage is about uploading data to the cloud for storage. (Typical application: Network disk)
Sharedpreferences and database storage can refer to the following blog posts:
Use of Android sharedpreferences
Database operations in Android
6. Network access
- HttpClient: It is provided by Apache.
- HttpURLConnection: Google is based on Java's own urlconnection improvements.
- Socket:socket is a TCP/IP-based communication tool that comes with Java.
- Webview:webview is a browser-based view of the Google Chromium kernel.
Here are a few things to consider:
Android HttpClient
Android_httpurlconnection_get and POST requests
Android-based socket communication
Android WebView Summary
You can also refer to the relevant section of Guo Lin's first line of code for the Httpclient,httpurlconnection section.
Note: Android will no longer be able to perform network operations on the main thread after starting from 4.0.
7. Animated Commentary
Here are a few things to consider:
Detailed Android Animation frame Animation
Detailed Android animation tween Animation
Android Properties Animation (property Animation) Full Parse (top)
Android Properties Animation (property Animation) Full Parse (bottom)
8. Drawing
- View drawing can refer to Android drawing three basic objects (Color,paint,canvas)
- Surfaceview drawing can refer to the Android view and Surfaceview
- OpenGL ES drawing can refer to the Android OpenGL ES tutorial
9. Multimedia and Camera
Here are a few things to consider:
"Android Notes" MediaPlayer Basic usage mode
Android Camera (one) call system cameras app
Android Camera (ii) camera program writing
10. Advanced UI Learning
Here are a few things to consider:
Android fragment full parsing, everything you need to know about fragmentation
About the use of viewflipper and how to set the animation effect
Android Viewpager Use detailed
Android Actionbar full parsing, using the official recommended best navigation bar (above)
Android Actionbar full parsing, using the official recommended best navigation bar (bottom)
Android Custom View (one)
Android hand-taught you custom ViewGroup (one)
Note: When using fragment, do you use the android.support.v4.app.Fragmentandroid.app.Fragment
11. Style Development
Here are a few things to consider:
Android-style development: Shape article
Android-style development: Selector
Android-style development: Layer-list
Android-style development: drawable Summary
Android-style development: View animation
Development of Android Style: property animation
Development of Android style: Style article
12. Multi-Threading and communication
- Handle learning can refer to the Android message processing mechanism (Handler, Looper, MessageQueue, and message)
- Asynctask Study can refer to the use of Asynctask in Android
- Aidl Study can refer to Android Aidl use detailed
13. Other Knowledge points
Here are a few things to consider:
Android Basic Architecture
Android resource file-use resource store string color dimension integer Boolean array
Android manifest.xml Structure Detailed
Android Gesturedetector gesture Recognition class
Android Event delivery mechanism
The distribution and consumption mechanism of Touch events under Android programming
Android event distribution mechanism instance validation
Android Clipboard (copy/clipboard)
14. Some Android learning sites and blogs 1. Three big Android Best learning Sites
| Site name |
Description | A
similar person in China |
| Google |
Have a problem on Google |
Baidu |
| StackOverflow |
Stack Overflow is a program-related IT technology quiz site. |
Segmentfault |
| GitHub |
Code hosting, you can find a lot of useful source |
Open source China Code cloud |
2. Android commonly used three large warehouses
Often the items we find on GitHub do not provide a download of the library file, and we want to download the library file directly, see what warehouse the project was uploaded to, and then go to the repository to download the library file.
3. Android Utility website
| Site name |
Description |
| Android Weekly |
Android Technology Weekly Referral |
| Android Development Technology Weekly |
Weekly Introduction to Android development news and new technologies |
| Android Arsenal |
Do not create wheels repeatedly, provide Android tools, libraries and apps |
| Codota |
Code Search |
| Codepath |
Well-known foreign training institutions, provide a large number of Android learning excellent resources |
| Android Asset Studio |
Android Icon Maker |
| Dry Camp |
Share Android Excellent technical articles or open source projects every day |
| Development technology Front |
Introduction to advanced technology in Android development |
| http://www.android-doc.com/ |
Android Official API Mirror website (Sync API to 19) |
| http://android.xsoftlab.net/ |
Android Official API Mirror website (Sync API to 23) |
4. Android Excellent blog
- Guo Lin's Column
- Yang
- Trinea
- Zhakai
- Ningyugang
- One leaf floating boat
- Scott
- Zhang Xingye's blog
- Xiahanming
- Liu Wangshu
How to teach Android