aiLabel:

How to create an Android development project

Thank you for your experience
Favorable reply

Operation method

Download and install Android Studio from the web and open it. Now, you are ready to start your first Android application! First, the name of the android project. Enter it here. Note that the version of android studio we use here is 2.2. Wait for a certain time. This depends on your machine configuration, Android Studio is the only official Android project development ide designated by Google, which has a high degree of function aggregation. At the same time, we will see later that Android Studio adopts a different compilation method from eclipse, namely, the Gradle compilation, and the cloud resource mode (servers are all overseas, and some functions need to climb over the wall to use, drunk). Therefore, don't be dissatisfied with its slow card

Select the corresponding android sdk version. Like IOS, android has many classified versions, ranging from low to high, as well as android wear (watch), android TV (TV), Android auto (car mounted) and other versions. Select the device you want to run the project to and the system version. Here we choose the Android mobile phone project. The version can be 4.0. At present, 4.0 is basically the minimum version. Of course, WeChat, QQ and Alipay are all supported up to version 2.3

Here is the layout file of the Android project. At present, because our project has only one main window, this layout file belongs to the main window. Here is a record of the controls in this window, their positions and arrangement modes. For example, TextView is a text control, and RelativeLayout is a layout control, which is used to control the layout of controls.

This is the compiled configuration file compiled by the dressed gradle, which contains various configuration options in compilation. For those who transfer from eclipse, it takes a lot of brains to understand the various configurations here!

This is the list file of the Android project, which contains the icon settings of the application, as well as activity. Activity is one of the four components of Android, which can be intuitively understood as the forms we see. All activities that need to be displayed need to be registered here

Here is the main java class of the window. The main programming language of Android is the java language. Of course, there is also the ndk that supports c++programming, and the popular front-end scripting method for Android projects. This class represents the main window, and the OnCreat() method will be executed when the interface is started.

Click here to run the Android project written for us by the system. Yes, this is a completed Android project, which is simple, but there are many main components.

The application we started is running in the simulator here. We can create our own simulator and freely customize the configuration of the simulator, including the system version of the simulator

Perfect, our first application has already run. Although it only displays a Hello World text, we have somehow completed an Android application. Later, we just need to package and sign it, confuse encryption, and then release it to the application market for download

Thank you for your experience 2024-05-09 01:50:53
The above contents quoted, excerpted or reproduced on this website are only for the exchange or reference of website visitors. The views or information in the text have nothing to do with Aiwen, and any matters and legal liabilities related to it have nothing to do with Aiwen.

Latest answers Change

one

Q: What is the position of BOE OM

Answer:
Answer: BOE OM is an operation manager. BOE Technology Group Co., Ltd. is an Internet of Things company that provides intelligent port products and professional services for information interaction and human health. It was founded in Beijing in April 1993. Its core businesses include port devices, intelligent Internet of Things, and intelligent medical industry. In June 1997, BOE successfully issued domestic listed foreign shares in Shenzhen Stock Exchange.
two

What is a photo book 2020-06-16

Related recommendations

Does Chinese wolfberry fade with cold water

Lycium barbarum contains natural carotene, so it is normal for the water soaked by Lycium barbarum to be orange. Normal medlar will fade when soaked in water, but it is not red but orange yellow like carrots. There may be a problem with medlar that does not fade when soaked in water. Lycium barbarum with cold
Details>
Question time: June 19, 2019

How to obtain world rune stone

There are two main ways to obtain runes in the early stage: one is to obtain tasks. In the early stage, only a small amount of runes will be obtained, which is not enough for players to draw runes for ten consecutive times; The other is the arena, which is an important source of runes for players at the early stage. When they win the best ranking for the first time, they will get valuable runes
Details>
Question time: November 24, 2019

Where to find the qq invitation code

Open qq, click the contact person in the lower menu, click the Add button in the upper right corner, click the "Invite friends to register QQ" option in the "Find people" item, and then click in the "Invite code", so that the new person can enter your invitation code when registering qq, and both parties can get 3 days of rewards for qq members. Q...
Details>
Question time: October 25, 2019

Beef ribs

1. Chop the beef ribs into small pieces, soak them in clean water for half an hour, and then rinse and control the drying. 2. Heat the pan with oil, add the onion and ginger, stir fry the beef ribs directly in the pan until they change color, add soy sauce wine and salt, and continue to stir fry. 3. Beef ribs
Details>
Question time: July 1, 2020

Basic knowledge of focus of ellipse

An ellipse is a locus whose sum of the distances from two fixed points on the plane is equal to a constant. These two fixed points are called focal points. An ellipse is the locus of a moving point P whose sum of the distances from the plane to the fixed points F1 and F2 is equal to a constant (greater than | F1F2 |). F1 and F2 are called elliptical
Details>
Question time: June 8, 2020

What kind of goldfish belong to in animals

Goldfish is a kind of teleost fish belonging to Vertebrate phylum, Cephalopoda, Jaw, Fishes, Eustomea, Cypriniformes, Cyprinidae, Cyprinoideae, Crucian Carp. Goldfish is a unique ornamental fish in China. It has entered thousands of families with its colorful, mild personality and diverse varieties
Details>
Question time: March 20, 2020

What's the matter with acne on eyebrows

1. Hair follicle inflammation is one of the reasons for acne on eyebrows. Inflammation occurs because patients usually do not pay attention to their own personal hygiene and physical exercise, which leads to a decline in physical fitness and immunity. It is also because patients usually like to eat spicy food
Details>
Question time: May 16, 2019

Do you need fans for SSDs

If the solid state disk does not need a fan, the power consumption of the solid state disk is 5W, and that of the mechanical disk is 12W. Therefore, in principle, SSDs generate much less heat than mechanical hard disks, and are generally unnecessary. Solid state hard disk is a hard disk made of solid state electronic memory chip array
Details>
Question time: December 13, 2019

How many points should a strong country achieve

Learning from a powerful country requires 30 points a day to qualify. Of course, different units, different counties and cities have different requirements. The rank of learning power is based on the national ranking, and the ranking is based on the score. This score is dynamic, so the score of each rank is not fixed
Details>
Question time: January 10, 2020

500m walk for a few minutes

It takes about 6-10 minutes to walk 500 meters. Generally, the walking speed of ordinary people is 4-7km/h. If the speed is fast, it can reach 10km/h. Therefore, it usually takes 12-20 minutes for 1km, while it takes about 6 -
Details>
Question time: October 4, 2021-10

Where is the heroic moment of the Palm Alliance

The method to find the time and location of the handheld heroes is as follows: 1. First, click the avatar in the upper left corner on the page of the handheld heroes league. 2. Click again to find this item. 3. Then click the Hero Moment item. 4. Click Friends again. 5. The friend's page will display
Details>
Question time: July 8, 2020

What are the great projects in ancient China

The great ancient projects in China include: 1. The Great Wall is an ancient defense project with the longest construction time and the largest amount of work in China and the world. Since the Western Zhou Dynasty, it has been continuously built for more than 2000 years, and is distributed in the vast land of northern and central China
Details>
Question time: 2019-05-28

How normal is the armpit temperature of adult infants

The body temperature of adults and children is the same. The armpit temperature is commonly used, and the normal range is 36-37 degrees. The body temperature fluctuates throughout the day. Generally, it is low in the morning, the highest temperature is around 2 p.m., and the highest and lowest temperature are not more than 1 ℃ under normal conditions
Details>
Question time: February 1, 2020

Introduction to Tianlong Badu Hand Tour and Five Sages

Introduction to the Five Saints of the Eight Manual Tours of Tianlong: The copy of the Five Saints' Coming Activity is opened every two weeks on Tuesday. On Tuesday, young Xia with level 75 or above will have a chance to participate in activities. You can form a team of 6-10 people and go to Luoyang [Xuanmin] to participate in the activity. Five Saints
Details>
Question time: June 22, 2020