Beijing Institute of Electronic Technology
Lab Report
Course: Mobile Platform Application development Practice class: 201592 Name: Yang Fengxue No.: 20159213
Score: ___________ Instructor: Lou Jia Peng Experimental Date: 2015.11.1
Experiment Name: Create projects and emulators in Android studio
Experimental content: 1. Create a project in Android Studio 2, create and launch the Android emulator
First, the experimental introduction
Be familiar with the Android development environment, some basic operational skills and debugging techniques to better learn the follow-up courses.
This experiment is divided into two sections
1. Create a project in Android studio
2. Create and launch the Android emulator
Second, the initial knowledge of Android Studio and create a project
Get the Android Studio welcome page from the lab building because you forgot in the experiment
Here we introduce the features of the Welcome page:
Start a new Android Studio project to create an Android project
Open an existing Android Studio project opens existing Android studio projects
Import an Android code sample importing Android codes sample
Check out project from version control to get items from the versioning library
Import Project imports projects in other development environments
Configure settings
Docs and how-tos documents and mentions
On the left side of the Welcome page, recent project will show you the most recent project, and the Quick Start option on the right.
Select the first function here, set up the first project name
Some things to be aware of when filling in
1, the application of the name should use the Hump name method, if exposed to eclipse, you can understand that the first letter must be capitalized.
2. Company Domain is commonly used in commercial development and is designed for easy filing.
3, according to the actual situation, you can set project location, that is, the position of the project. Normally, we use the default values.
On the next page, we can choose which platform the development app will be used on. According to the experiment we need to choose API 22:android 5.1.
Click the Next button to enter the next step, and you will be asked to add an activity to the app, as shown in:
This step customizes the activity's information, and the activity application interface is managed by the Acitivity class. Here are the specific information:
- Activity name: Defines the name of the activity. Android Studio generates a. Java class file of the same name accordingly.
- Layout Name: Defines the configuration file name of the activity. The layout file here refers to an XML resource file that determines the properties of the various controls in the activity.
- Title: The text message to be displayed on the caption bar, usually refers to the function of this page (such as homepage, registration, help, etc.). This content can be found in the Res/values/string.xml file.
- Menu Resource Name: The menu item resource file name. For some minor features and settings, the Android design code recommends placing it in the menu, which can be found in the Res/values/menu.xml file.
Then we create the to:
If you edit the software, we can edit the Mainactivity.java file.
Iii. Configuring and starting the simulator
The Android emulator is a virtual device that can run on your PC, allowing developers to browse, develop, and test Android apps without the need for physical devices. In development, it is not necessary to have all the tools.
is the virtual simulator, named AVD.
Developers need to click this button to open Android virtual Device Manager. And more need to select hardware such as
There are a few steps omitted to repeat again.
Experimental summary
In this experiment, I mastered the creation of the project in Android Studio and created and launched the Android emulator. The function of some buttons is known, which lays the foundation for later learning.
The disadvantage is that the installation of the necessary things in the SDK is successful, but some important things are not installed successfully, by querying the relevant blog, and did not solve the problem. This experiment is only a preliminary understanding of the function of the software, there is a lot of knowledge to learn.
Create projects and emulators in Android studio