Introduction to Android Studio
1.1 What is Android?
Android, the original meaning refers to “robot”, Google will Android logo design as a green robot, indicating that The Android system conforms to the concept of environmental protection, is a thin, short, powerful mobile system, is the first truly open system for mobile phones. Android is Google’s operating system for mobile phones and tablets based on the Linux platform.
Android system architecture:
1.2 Advantages of the Android platform
· Openness: The open platform allows any mobile terminal vendor to join the Android Alliance.
· Multi-hardware compatibility: Due to the openness of Android, many manufacturers will launch a variety of hardware products with strange and unique functions.
· Easy development: The Android platform provides a very broad and free environment for third-party developers, without any restrictions.
1.3 The difference between Dalvik mode and ART mode of Android operating environment
Dalvik mode: It is a VIRTUAL machine designed by Google for the Android platform. It can simply complete process isolation and thread management, and improve the efficiency of memory usage.
ART mode: It is an application running mode newly added by Google in Android4.4 system, which can achieve a smoother Android system experience.
The biggest difference between Dalvik mode and ART mode is that in ART mode, the application will be precompiled once when it is installed. In this way, there is no need to compile every time when the program is running, and the execution efficiency will be greatly improved.
1.4 Learning Android can develop many exquisite apps.
Android Studio installation
2.1 Installing and configuring the JDK Environment
Download link direct: JDK download
Sometimes you need an Oracle account to log in to download.
Account: [email protected] Password: Oracle123
2.2 Installing Android Studio
Download direct link: Android Studio download
The following 6 steps are completed to install Android Studio:
The following:
Create your first project
When a project has not been created before, the first screen that appears is below, and if a project has been created, the recently created project appears below.
Click on the simulator to run:
If this error occurs: HAXM install faided. See: Solution