Developing Android apps with Android studio
--------------------Reprint Please specify the Source: Coder-pig
Objective:
At the May 16, 2013 developer conference, Google released a new integrated development environment: Android Studio
The IDE is dedicated to developing Android apps, and if you need to use Java, you need to download the Java IDE!
Google has slowly focused on Android studio, so it's necessary to familiarize yourself with the IDE's development environment!
This blog post will be updated on an irregular basis! For the problems encountered and some new things will be noted! I hope I can help you, coder!.
software Download:
Official Address: Official address
If the wood has turned over the wall or not to go, use the following Baidu Cloud link to download it:
32-bit: Click to download a Chinese package: Click to download
64-bit: Click to download
installation of software
In fact, the installation of software is very simple, fool-style next, more;
If you're afraid, you can look at the following package:
Android Studio installation: Packages
Basic use:
Before using, look at this article should be a large part of the eclpise came from, want to try as, first of the two IDE to compare some names:
|
Eclipse |
Android Studio |
| Work area |
Workspace |
Project |
| Project |
Project |
Module |
| Reference |
Preference |
Moudule dependence |
Therefore, in the as is not to build multiple project, but to create multiple module
① How to build a project:
Directly select the first one, we are developing mobile devices, here is the SDK with the minimum version set
Next: Here are a variety of forms of activity, with side-by-side, custom navigation bar and so on, usually we choose the default blank
Next: Set the name of the main activity and the name of the corresponding layout file:
Finish, then wait for the Gradle to load the project catalog, and then go to the as provided by the development interface, it seems to be very dazzling
Introduction to the ② development interface:1. Project Catalogue:
2. Main working space:
3. Introduction to related forms:
1) Working space hidden and displayed:
2) DDMS Android Debug Tool use: Logcat is the running log, devices is the current device situation
You can look directly at the bottom:
Of course, you can also click on the menu bar to open a separate DDMS form:
3) Common items for toolbars:
Sequence is run, Debug, Android device log view, SDK and JDK directory; Granle folder, AVD manager Emulator Manager; SDK; Android DDMS (Debug tool); Help
4) Real-time preview of layout file:
When we call the layout file, we just need to right-click Preview to pop up
Suitable for different mobile phones, to a certain extent, so that we make suitable for different screens of the app
three. Miscellaneous:
1. Change the theme of the IDE:
The first method:
Click on the Wrench icon and enter colors to find it.
Change the scheme name to Darcula and it will turn black! Change to Defalut is the original white! Need to restart Android studio! after Setup
The second method:
Enter app to find appearance
Problem Solving: