Programmers take you on Android development, 10-day Quick Start-development tool configuration Learning

Source: Internet
Author: User

Last lesson:. NET programmer to learn Android development-The first lesson is,. NET programmers learn about the need for Android development and an introduction to Android's big environment.

One saw a netizen commented, said, engage in C # to engage in Android, but also blame their mobile platform does not give force. Some people say, study. NET Learning. NET to learn what Android. At this time I thought of the first, the Great Qing Dynasty. Of course it is not against this part of the people. Can only say is the idea is inconsistent, the cognition is slightly different, also does not have the wrong and the right, I just want to express my own idea, the expectation and you resonate. Indeed, so far, I still think C # is the best language I've ever seen in the world. Design specification grammar always makes me excited. Its graceful grammar is even more fascinating. But we should not be able to appreciate the other's unique charm because of its beauty.

I never identified myself as C # or. NET programmer, I think which language can be more suitable to meet the needs of the use of him. After all, the characteristics of each language and the applicable scene are inconsistent. There is no guarantee that a language perfectly needs to be fulfilled. Microsoft's WP system in the past few years really does not give strength. Take the cost of our study, you go to learn WP. Learning is complete, it is possible to learn more is not used. Wasted the time of study. Why bother?

Why don't we give up WP and switch to the same energy to learn more about the more common Android development? As we learn, we will learn more about the unique charms of each language. Better to improve their programming ideas. Why not

Well, gossip doesn't say much, start. NET programmer to learn the second lesson of Android development.

As the saying goes 工欲善其事 its prerequisite. As. NET programmer we use the development tools that are visual stdio. Today we are going to learn how to install and use the tools to develop Android. Of course, vs is a development artifact, you can also do Android development. However, I do not have this experience, has been using Android Stdio for Android development. In a later time, I also try to use vs to develop Android. Post will write an article, to focus on the introduction.

We will install the Android Stdio first (hereinafter referred to as AS). Of course, in order to be more consistent with our vs usage habits, we will configure as the VS usage rule.

Professional Java developers need to master the "command line + Notepad" method of writing programs, but beginners are too difficult. So first learn the development environment of fools.

First, installation

The installation consists of two parts:

The first is the JDK (which can be understood here as the. Net framework), which is the compilation environment. This is necessary to develop Android.

The second one is the installation of AS. The specific installation package will be provided in the public platform (Fullstackcourse) full stack technical tutorials. Please reply to "development tools" to get

    1. Installation of the JDK

        1. Download the JDK double-click and install it according to the default configuration. But be aware of the JDK installation directory. The following will be used.

        2. The configuration of the JDK. To make the JDK effective, you must configure the environment variables. In fact, this can be understood as, we have to declare the JDK as a global variable, so that it can be accessed anywhere to use it. The Android program will be compiled with the JDK. So we need to configure the environment variables.

        3. Configure environment variables: My Computer-Right-click Properties-Advanced system Settings-advanced-System variables

          Select New System Variable--pops up the new System Variable dialog box, enter "Java_home" in the Variable name text box, and enter the installation path for the JDK in the Variable value text box. Such as

        4. View the path variable in the system Variables options area, and if it does not exist, create a new variable path, otherwise select the variable, click the Edit button, and add "%java_home%\bin;%java_home%\jre\bin;" At the beginning of the Variable Value text box. Such as:

        5. View the CLASSPATH variable in the system Variables options area, and if it does not exist, create a new variable classpath, otherwise select the variable, click the Edit button, and add "in the start position of the Variable Value text box."; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; "

          Such as:

        6. Finally click OK to configure the environment variables.

        7. Verify that the configuration is correct. Win+r Open the Run panel and enter CMD into the DOS command line window. Enter "JAVAC" and the output Help information is configured correctly. Such as:

    2. As installation.

        1. The installation of as is consistent with most programs. Just click Next to go.

        2. It is important to have the middle and select the SDK process everyone unzip the SDK to select the corresponding directory on it.

    3. As configuration:

        1. The Android SDK is automatically checked and upgraded the first time you run Android studio. However, the inability to access the linked Google server in our mainland will cause the as development tool to fail to open. So we need to disable the automatic networking upgrade.

          Modify: Idea.properties file (under the Bin folder of the as installation directory). Locate <android-studio>\bin\idea.properties file, open it, and change it to this:

# automatically check and upgrade Android SDK when running Android studio for the first time

Disable.android.first.run=true

# below two is the directory where Android studio settings, plugins and other files generated by the runtime are stored

# If you don't change it, the default in Windows is c:\users\<username>\. Androidstudio.2\ inside

# ${idea.home.path} represents the home directory of the Android Studio program, note that the directory delimiter must use a forward slash "/"

idea.config.path=${idea.home.path}/. Androidstudio.2/config

idea.system.path=${idea.home.path}/. Androidstudio.2/system

B. At this point, as can be opened.

Second, as configuration

Follow the Open settings option:

Set theme, window size, animation effects

① Modify the theme ② modify the Global window font (need to select the Chinese font, it is best not to modify the default), Font size ③ window animation (computer performance can not be banned)

Open Project Settings

① Disable Auto-Open Last Close project, disable exit prompt ② Open new project Prompt mode

Disable automatic check for updates

① Canceling Automatic Updates

Show line numbers, Show method divider lines

① Display Line numbers ② Display method separators

Code Intelligence Tips

① knock on everything prompt ②③ prompt time setting

Knock what character will prompt, all (case all match), None (regardless of the case, match on the hint), (first letter) (one character conforms to OK, other casual). My brain is not memory of course choose none. The time setting is based on your computer's performance.

modifying code Fonts

It is strongly recommended to use Consolas fonts

Modify file Encoding to UTF-8

Configure shortcut keys

① custom shortcut keys ② based on content search shortcut keys ③ Press the key to search for shortcut keys ④ Delete shortcut keys

In the shortcut keys we can modify the shortcut keys for vs.

The configuration of the as has been modified.

This is the lesson to be written here. You can't say how good you write, but use your two hours of hard work every day to write it down carefully. Hope may help more people. Of course if you have more suggestions and ideas. Welcome to join QQ Technology Group: 538742639. More than 300 technologies Daniel is waiting for you. You can also comment on the impact of this article on mutual thought.

Next article Link: Programmers take you to learn Android development, 10 days fast into-contrast C # learning Java syntax

Programmers take you on Android development, 10-day Quick Start-development tool configuration Learning

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.