Installation and configuration of the "C #" VS2015 Development Environment (III) 2016-07-03 update

Source: Internet
Author: User

Categories: C #, VS2015, WPF, ASP. NET MVC, Android, IOS, Unity3d;

Date Created: 2016-07-03

The console application, the WPF application is created directly, and is no longer described here. Here's just a quick introduction to creating Android apps, ASP. NET Web applications, and Unity3d applications.

First, create an Android emulator

You must do this before you can create an Android application.

Debugging a mobile app is usually implemented with an emulator, just because it's too cumbersome to debug every time you publish to your phone. Once the application has been debugged on the emulator, it's time to post it to the phone to run the verification.

In order to observe the results of the run in the simulator, you need to create the emulator before you can create an Android application. There are several ways to do this:

Option 1: Enter the ANDROIDSDK installation directory (D:\ANDROID\ANDROID-SDK) and run the AVD Manager.exe.

Option 2: Run VS2015 (Note if it is a VS2015 shortcut, be sure to run it with Administrator privileges), and then run Android Emulator Manager:

Method 3 Common: Click the shortcut key in the shortcut bar to launch the AVD directly:

Choose one of the above three options.

1. Created simulator

To test the performance of different versions of your phone, create the following emulators, as shown in:

2. Create Android 4.4.2 (API 19) simulator

Android 4.4.2 Simulator can use Chinese character input (google Pinyin input method), while Android 5.0 and later version of the simulator is not able to use the Chinese character input method, only in English test run effect.

Of course, you can also create other types and versions of the emulator.

(1) Create simulator

Run the AVD Manager.exe file under D:\ANDROID\ANDROID-SDK.

In the pop-up window, create an AVD (Android Virtual Device, or AVD) as shown:

Configure the appropriate options:

Note the following settings:

    • RAM: If it is 4GB memory, use the default of 1024. If it is 8GB memory, recommendation 2048.
    • Camera: The front is simulated (for laptops, you can also choose the webcam mode).
    • Skin: Select "No Skin".
    • VM HEAP: Recommendation 512, be careful not to be less than 256, or when the program is getting more and more, there may be a scenario where the Java stack is not enough at compile time.
    • SD card: Set to 256 or 512 is OK. The larger the value, the more programs or data you can save on the external memory card.
    • Tick the "Use Host GPU" option, which is: Enable GPU acceleration.

The above is for Intel CPUs and WIN10 operating systems.

For Intel CPUs and Win7 operating systems, when the simulator RAM is set to greater than 768MB, the use of GPU acceleration may occur when the emulator is not started correctly (or may not appear). If this happens to your computer, you can reduce the RAM option's capacity to 768 (which can cause slow running). However, if the RAM is set to 1024MB the emulator will still start normally, in this case you should not reduce the capacity of RAM.

Click OK to complete the emulator creation process, as shown in.

(2) Start simulator

Select the emulator you just created and press Start to run. In the popup screen, click "Launch". Wait a moment (less than 1 minutes) and the following interface will appear:

Click "OK" and the button in the box will appear with the following interface:

(3) Modify the language and input method

Click "Settings", modify the language used for Simplified Chinese, and tick "Google Pinyin Input Method", so that when running the simulator can be entered in Chinese characters via the soft keyboard:

(4) Modify time zone

Tick "Use 24-hour format", uncheck "Automatically determine time zone", click "Select Time Zone" and select "Chinese Standard Time" as shown in:

In addition, in the Android 4.4.2 (API level 19) simulator, the default input method is set to "Google Pinyin Input Method", you also need to turn off the "Physical keyboard" option, so as to display a simulated soft keyboard, and by tapping the letter on the soft keyboard to enter Google Pinyin and switch between English and Chinese conversion. If you turn on the physical keyboard, you still cannot enter Chinese characters in the simulator.

(5) Modify developer options Configuration

Click "Dev Tools" as shown in:

Click "Developer Options" as shown in:

In the Developer Options window, set the options to the following:

Tick "force GPU rendering" as shown in:

When using the Texturemapview controls provided with the Baidu map, this option must be turned on. If you do not use this control, you do not need to tick it.

In addition, if you want to connect your phone to your computer via USB and then debug it directly on your phone, you need to tick "USB debugging", otherwise you don't need to tick it.

In addition to the above options, the default values are used for the other options.

OK, this creates the Android 4.4.2 Simulator, the startup effect is as follows:

Click the "X" in the upper right corner to close the simulator.

3. Create Android 6.0 (API 23) simulator

The steps to create the Android 6.0 (API 23) emulator are similar to those of API 19, which is not detailed here, and the simulator is configured as follows:

The simulator works as follows:

Click the "X" in the upper right corner to close the simulator.

Second, create Android app

Run VS2015 to create a blank App (Android) Project:

Select one of the emulators that you created earlier, as shown in:

Press <F5> debug to run.

Here is the effect of the run:

Observe the Output window, if the last line outputs the information:

Hostconnection::get () New Host Connection established ...

Indicates a successful GPU acceleration.

Here are the effects of running Mydemos (Baidu Android SDK has been upgraded to version 4.0):

Iii. Creating Unity3d applications

See this blog Unity3d module in the introduction, here will not repeat (except the version is different, the other is the same).

Installation and configuration of the "C #" VS2015 Development Environment (III) 2016-07-03 update

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.