Android Studio Experience (ii)--Create project and Genymotion trial

Source: Internet
Author: User

I've had an Android studio in the Sunday, and it's been a little bit more, but let's start with creating a project, first of all we need to familiarize ourselves with project and Module Concepts in Android Studio. In Android studio, project is a workspace similar to workplace in Eclipse, which refers to a specific project similar to a project in eclipse. Eclipse can simultaneously edit multiple Eclipse project simultaneously, in the same workspace, the corresponding Android studio can simultaneously edit multiple Android studio Module , these Module are in the same project. The item mentioned in the title of this article refers to the Module of Android studio. Android Studio creates a project that starts with Project first. However, when you create a project, Project automatically created, Android Stuido create a new project after the corresponding creation of a corresponding app folder, you do not need us to re-create a module, directly corresponding to the operation of this module.

Create a project

Generally the newly installed Android studio enters the startup page with an initial page like this:

You can also set it up from another portal on the homepage, file→new Project, and then the process is simple;

1. Set the name of the new project

2. Choose the type of project, four of which are mobile phones and tablet applications, TV applications, wearable applications, class applications, we develop generally only involves the first

3. Select the template type, in order to simply explain the problem, I chose an empty template, you can choose other templates to study the quality of Google's code is really better than the average developer (including me)

4.MainActivity Default can

The next step is to compile and create the project takes dozens of seconds, sometimes a long time, depending on the machine, see the final effect bar, modified the display font size, the others are intact:

genymotion Simulator

Android comes with the simulator a bit like a snail, computer configuration does not work on the computer using the original simulator is a very painful thing, there is a demand for the market, this time genymotion appeared, the advantage is the speed of the interface beautiful, the two days have been enough to base, As for its technical structure and other advantages we can search, official website: https://www.genymotion.com/. The extra thing is that the average foreigner has a corresponding website, China has a corresponding individual developer or said the company will make a corresponding Chinese, http://www.genymotion.net/,net a look is China's people themselves, online also has tutorials and blog written This is the official website, Just take a look at it. This oneself need to register an account, and then download the corresponding file, registration is to start genymotion need account verification. Register this thing not much to say, after registration remember to verify the mailbox. After entering the account:

A point to note is that genymotion is dependent on VirtualBox, that is, your computer must be installed Virturalbox to run, if your computer does not directly download the first box on the line. The default comes with the VirtualBox is 4.2.12, the official website is the latest 4.3.20,https://www.virtualbox.org/wiki/downloads; simply look at the installation process:

The installation directory, which you put in a common location, is then used in Android Studio:

After the operation is very simple, are the next operation, then in the setup plug-in search genymotion (before is the theme of the day, this changed a night, some yesterday, a little today)

Three small boxes, the first is set (often used), the second itself simulator, the third is the effect after installing plug-ins, search plug-in effect (I have installed, if not installed red that place should be install):

Start the local genymotion, the button is simple on three, start, add, set:

Click the effect after adding:

Download one of the topics, usually around 200M:

Finally set the path to Genymotion in Android Studio (before I change the background)

The log of Android Studio is a bit different from the previous eclipse, adding a test log, with a simple contrast effect:

Genymotion's homepage is really beautiful, can't help but cut a picture, we casually look at:

By doing this, you can basically run the app individually, with the following effects:

Normal projects will generally run successfully here, but it is possible to encounter an error that is failure [INSTALL_FAILED_OLDER_SDK], because the minimum supported version of the project is 14, and the simulator is 10, which is higher than the emulator version and can be modified again:

font Backgrounds, versioning and shortcut keys

Generally installed after the Android default white theme, and the font is small, it does not look so gorgeous, so the online view of the Android studio is, there is a, through the small gear icon to enter the settings, the default is the two themes of a white background, Darcula is a black background, according to individual needs save as a bit, after the words can also be deleted, I added two, Dark-keso and Default-keso.

After setting the project background is not complete is black, also need to set the IDE's theme, the same through setting access:

Android Studio for version control do a good job, the same through setting, the popular is git, point to test first, if successful, you can do the following:

Choose Git versioning with the lowest-level navigation vcs→enable version control integration:

Right-click the project and you have one more git at this time:

Shortcut keys, Android Studio can directly select other versions of the shortcut keys, including the Cosmos First IDE visual Studio:

Spit groove A sentence, yesterday more than 10 points when the blog park hangs one hours or so, resulting in the inability to write blog, 11 is asked to sleep, resulting in the morning to write a blog, and other blog some Monday, leading to some theme is not the same as Beijing, we forgive, for this new IDE I also in the study, If not in place, we will correct you.

Android Studio Experience (ii)--Create project and Genymotion trial

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.