[Android] was developed later in Win10, androidwin10
Category: C #, Android, VS2015;
Created on:
Modified on:
1. Never use your mouse
With the constant bombing of the Win10 update reminder, when I watched my mobile phone today, the buttons on my laptop were shaking, just as I couldn't receive a red packet again, the system can be upgraded to Win10 immediately. Fortunately, the original development environment can continue to be used under Win10 without any changes, and the original Android project has been run, it turns out that the simulator is much faster to start than Windows 7. In this case, you don't want to change it back to Windows 7. Use Win10 later.
This also reminds you of the trouble. If you create a project in each chapter, apart from occupying more and more hard disk capacity, modifying the source program of a chapter is also troublesome, so this time we just re-create a new project.
2. Create a project under Win10
This time, in Win10, we will use the new project created in VS2015 to include examples of all Android development chapters. At the same time, we have optimized a lot of code in the program written 1st times, this can all be an original program written in a row.
In the new project, MainActivity. cs is only responsible for displaying the main navigation interface of the sample chapters during running. it is inconvenient to slide the examples because there are too many examples in all chapters, therefore, the main interface uses the list navigation feature with the "unit title" feature folded.
Project name: MyDemos
Project template: Blank App (Android)
Running Environment: Win10, VS2015 debugging mode, Android 6.0 (API 23) x86 simulator.
After the code is added to the new project, the main interface runs as follows. The left figure shows the effect after all folds, And the right figure shows the running effect after the fold items in Chapter 8th:
3. First, merge the first seven chapters into a project.
In this newly created Project, you need to merge the first seven chapters to optimize or modify the code later.
Of course, the problem of increasing the size of the compressed package during release is not considered here, just to facilitate debugging. If you do not want to do so, you can still create projects separately.
At the same time, through merging, you can also know how to integrate Baidu map into your own project and make it an independent module in the project, instead of creating an application for it.
Iv. Combined Operation
Here we only list the merged parts of the first seven chapters. it is meaningless to extract them all.
Expand chapter 3rd (as shown in the left figure below) and click Example 3-1 to obtain the effect shown in the right figure below.
The following figure shows the effects of the fold items in Chapter 5th and Chapter 6th.
Expand chapter 7th (the left figure below) and click [Example 7-3] to obtain the effect shown in the right figure below.
Examples of subsequent chapters will be added in this project.