The first time to write a blog, there may be a lot of content will be compared to the standard point, I hope you understand. I want to share my experience with Android, I am a developer who has never had any foundation to start learning Android, and I hope my learning experience will help some friends who want to learn Android without any foundation.
(1), Target
Learning about the development of Android our latest goal is the ability to independently develop apps.
Independently complete the decomposition of an app:
1) Build frame 2) Development function 3) Quick Learning Ability 4) problem solving ability 5) English document reading Ability 6) Commissioning Technology Phase Objective: 1) master the project development process 2) understand the project member composition structure pcc/c++/delphi &NB Sp standalone Webjavaee/.net/php/python/ruby ror/nodejsmobileinternetjavase objective C (Swift) c# 2. Mobile Internet Project member composition structure 1) Art   2) project manager 3) server engineer 4) Android engineer 5) iOS engineer 6) front end worker Engineers 7) Product manager   8) test engineer 9) Interactive designer Ui/ue Must 1) service-side engineer 2) Android engineer  3) iOS engineer 3. Products
| |
|
  |
  |
  |
| product |
Project |
  |
  |
  |
| Project |
module |
|
  |
  |
| module |
|
  |
  |
  |
| process |
|
  |
&n BSP; |
  |
4. Project Framework Features: organization of multiple modules common types: 1) tab page 2) side-by-side menu 5. Analysis App general function 1) Welcome page 2) Novice boot 3) Home frame 4) List 5) banner Carousel Map 6) User Management registration, login, forgot password, SMS authentication, third party account (Sina Weibo) 7) Collection/browsing history 8) set WiFi only Download photo Night Mode feedback upgrade share about logout 9) pay 10) Search 6. Common technology 1) ViewPager2) secure third-party interface 3) database 4) HTTP5) Async 6) JSON 7) Multiplexing 8) Tool Class 9) IOC di two. Project Framework Construction 1. Welcome page role: Load resources, through the progress display shows that the software is running Analysis 1) simple layout (image + text) 2) 2 seconds after auto jump 3) have animation 4) have Ads (skip) 5) No title bar 6) can not be rolled back Android fragmentation problem 1) A variety of custom ROM small M Samsung Huawei 2) coexistence of multiple operating system versions82.29~102.3 Phone One~13 3.0~3.2 pad Not open source -4.0~4.4 Phone + pad 21 5.0 2. Novice Guide Page Analysis: 1) Multiple images horizontal slide Toggle 2) First show 3) cannot rewind 4) Skip button 5) immediately experience the creation of 3, Fragment (fragment) Step 1. First you need to create a class to inherit SupporV4 's Fragment 2. Overriding the Oncreateview () method, associating a layout note: When associating layouts you need to find your layout, then use your current layout object to find the controls on your layout, and remember to use the current layout object, otherwise there will be a problem with the null pointer. A lot of people will forget this side, so we need to pay attention to the point. When you drag fragment in the layout, you need to give fragment an ID. Using Viewpager, drag a control randomly in the layout and change its properties to Viewpager. 4. Static Use fragment method (understanding) 1) Modify the current class, Inherit FragmentActivity2) drag a fragment into the current layout 5. Dynamic use of fragment steps: 1) Add a framelayout in the activity layout to determine where the fragment dynamically added 2) code to dynamically add fragment, you can add, delete, modify the fragment in the Code 6. Method of button shortcut registration event in Layout 1) in the activity layout, add a property to the button controlAndroid:onclick, the value is method Name 2) method naming rule: public void begins with a parameter of view v 7. Dynamically used interaction between fragment and activity activity calls Method 1 in fragment Call Fragment in Activity Changetext () Method 2) in Fragment find TextView control 3) New method in Fragment, change TextView content Fragment Call Method 1 in activity) through the fragment.getactivity ()Get the Activity object and call the Activity Method 2) Add Changetext () method 8 to the activity. Common problems encountered while creating fragment and solutions; 1. @android: Style/theme.holo.light.noactionbarrequires API level (current min is 8)Class requires API level one (current min is 8): Android.app.FragmentWorkaround: The API version is different, you just need to change the version to the same .2.AndroidRuntime (4103): java.lang.RuntimeException:Unable to start activity componentinfo{com.example.ex_templete/ Com.example.ex_templete. Mainactivity}: Android.view.InflateException:Binary XML file line #28: Error inflating class fragment log prompt because: 06-02 07:47 : 59.154:e/androidruntime (4103): caused By:java.lang.ClassCastException:com.example.ex_templete. Myfragment cannot is cast to android.app.Fragment reason: the inherited activity can only be added inside Android.app.Fragment fragment, not supported for SupportV4 fragment resolution: Modify Inheritance Fragmentactivity
Android's Development learning