Easy Tutorial
❮ Cpp Virtual Function Verilog2 Level Modeling ❯

1.2 Setting Up the Development Environment

Category Android Basic Beginner Tutorial

>

The main Android development environments currently in use are:

  1. Eclipse + ADT + SDK
  2. Android Studio + SDK
  3. IntelliJ IDEA + SDK Most developers in China still use Eclipse. However, since Google announced it will no longer update ADT and has removed the Eclipse download link for integrated Android development environments from its website, it is evident that developers will eventually transition to Android Studio. Although this transition period will be long, if you are new to Android, it is recommended to start with Android Studio; many excellent open-source projects are also based on Android Studio! Of course, this tutorial will introduce both development environments, and you can choose which one to use. There is also IntelliJ, which is similar to Android Studio, but it will not be covered in this tutorial!

1. JDK Installation and Configuration

>

Step 1: Download JDK You can download it from the official website: JDK Official Download or from my cloud drive: My Cloud Drive PS: Any version will do, but 32-bit systems can only download 32-bit versions!

Step 2: JDK Installation Just follow the next steps in the installation wizard!

Step 3: Environment Variable Configuration Configuring environment variables is for convenience in command line operations, which will be used later! Right-click My Computer ——> Advanced ——> Environment Variables Create JAVA_HOME Modify the PATH variable, do not delete the original content!!!! Create CLASSPATH Verify if the environment is configured correctly Open the computer's cmd (command line), press win + R and enter cmd, then in the command line enter javac and java successively, and if the results appear as shown, the configuration is complete:


2. Choose One Development Tool

>

As mentioned earlier, the current state of development environment IDEs, and another point forgotten earlier: Android Studio is quite resource-intensive. If your computer is not very good, it is recommended to use Eclipse for Android development first. Below is the process of familiarizing yourself with IDE usage by following the steps:

Then choose one of the following to start your Android development journey!

Eclipse + ADT + SDK: Android Studio + SDK:


3. Explanation of Related Terms

>

-Dalvik: Android's unique virtual machine, different from JVM, it is very suitable for use on mobile terminals!

-AVD: (android virtual machine): Android virtual device, which is the Android emulator

-ADT: (android development tools) Android development tools

-SDK: (software development kit) Software development kit, which is a collection of tools for the Android system and platform architecture, such as adb.exe

-DDMS: (dalvik debug monitor service) Android debugging tool

-adb: Android debug bridge, located in the platform-tools directory of the sdk, with many functions, essential for command line

-DX tool: Converts .class files into .dex files

-AAPT: (android asset packing tool), Android resource packaging tool

-R.java file: Automatically generated by the aapt tool based on the resources in the App, can be understood as a resource dictionary

-AndroidManifest.xml: App package name + component declaration + minimum compatible version + required permissions, etc., the configuration file of the program


The following content may be a bit challenging for beginners, but looking back, you will find these things very useful~ If you don't understand, you can skip it for now

4. Some ADB Command Line Instructions

>

Before executing ADB commands, we also need to configure the environment variables for our SDK Step 1: Create a new ANDROID_HOME environment variable and paste the sdk root directory address: **Step 2:** Update the Path environment variable, add at the beginning of Path: **%ANDROID_HOME%\tools;** After configuration, let's learn the instructions:


5. APP Program Packaging and Installation Process:

>


6. APP Installation Process:

>

7. Summary of This Section

>

In this section, we analyzed the current state of Android development IDEs, recommended that beginners with adequate hardware use Android Studio for Android APP development, described the installation and configuration of JDK, and the process of familiarizing with IDEs, some key term explanations, common ADB command line instructions, and finally the packaging and installation process of programs! After this chapter,相信大家会对Android开发有了一个简单的了解,了解开发一个程序的流程,以及对应的项目目录结构!相信大家会抱怨模拟器AVD跑得很慢,下节会给大家介绍一个比真机还快的Android模拟器——Genymotion的安装使用!

-1.0 Android基础入门教程

-1.0.1 2015年最新Android基础入门教程目录

-1.1 背景相关与系统架构分析

-1.2.1 使用Eclipse + ADT + SDK开发Android APP

-1.2.2 使用Android Studio开发Android APP

-1.3 SDK更新不了问题解决

-1.4 Genymotion模拟器安装

-1.5.1 Git使用教程之本地仓库的基本操作

-1.5.2 Git之使用GitHub搭建远程仓库

-1.6 9(九妹)图片怎么玩

-1.7 界面原型设计

-1.8 工程相关解析(各种文件,资源访问)

-1.9 Android程序签名打包

-1.11 反编译APK获取代码&资源

-2.1 View与ViewGroup的概念

-2.2.1 LinearLayout(线性布局)

-2.2.2 RelativeLayout(相对布局)

-2.2.3 TableLayout(表格布局)

-2.2.4 FrameLayout(帧布局)

-2.2.5 GridLayout(网格布局)

-2.2.6 AbsoluteLayout(绝对布局)

-2.3.1 TextView(文本框)详解

-2.3.2 EditText(输入框)详解

-2.3.3 Button(按钮)与ImageButton(图像按钮)

-2.3.4 ImageView(图像视图)

-2.3.5.RadioButton(单选按钮)&Checkbox(复选框)

-2.3.6 开关按钮ToggleButton和开关Switch

-2.3.7 ProgressBar(进度条)

-2.3.8 SeekBar(拖动条)

-2.3.9 RatingBar(星级评分条)

-2.4.1 ScrollView(滚动条)

-2.4.2 Date & Time组件(上)

-2.4.3 Date & Time组件(下)

-2.4.4 Adapter基础讲解

-2.4.5 ListView简单实用

-2.4.6 BaseAdapter优化

-2.4.7ListView的焦点问题

-2.4.8 ListView之checkbox错位问题解决

-2.4.9 ListView的数据更新问题

-2.5.0 构建一个可复用的自定义BaseAdapter

-2.5.1 ListView Item多布局的实现

-2.5.2 GridView(网格视图)的基本使用

-2.5.3 Spinner(列表选项框)的基本使用

-2.5.4 AutoCompleteTextView(自动完成文本框)的基本使用

-8.3.12 Paint API - PathEffect (Path Effect)

-8.3.13 Paint API - Shader (Image Rendering)

-8.3.14 Paint Enumerations/Constants and ShadowLayer Shadow Effect

-8.3.15 Paint API - Typeface (Font Style)

-8.3.16 Canvas API Detailed (Part 1)

-8.3.17 Canvas API Detailed (Part 2) Clipping Methods Collection

-8.3.18 Canvas API Detailed (Part 3) Matrix and drawBitmapMesh

-8.4.1 Android Animation Collection - Frame Animation

-8.4.2 Android Animation Collection - Tween Animation

-8.4.3 Android Animation Collection - Property Animation - Introduction

-8.4.4 Android Animation Collection - Property Animation - Further

-9.1 Using SoundPool to Play Sound Effects (Duang~)

-9.2 MediaPlayer to Play Audio and Video

-9.3 Using Camera to Take Photos

-9.4 Using MediaRecord to Record Audio

-10.1 TelephonyManager (Phone Manager)

-10.2 SmsManager (SMS Manager)

-10.3 AudioManager (Audio Manager)

-10.4 Vibrator (Vibrator)

-10.5 AlarmManager (Alarm Service)

-10.6 PowerManager (Power Service)

-10.7 WindowManager (Window Management Service)

-10.8 LayoutInflater (Layout Service)

-10.9 WallpaperManager (Wallpaper Manager)

-10.10 Sensor Topics (1) - Introduction

-10.11 Sensor Topics (2) - Orientation Sensor

-10.12 Sensor Topics (3) - Accelerometer/Gyroscope Sensor

-10.12 Sensor Topics (4) - Understanding Other Sensors

-10.14 Android GPS Introduction

-11.0《2015 Latest Android Basic Tutorial》Completion Celebration~

-12.1 Android Practice: DrySister Look at Girls App (Version 1) - Project Setup and Simple Implementation

-12.2 DrySister Look at Girls App (Version 1) - 2. Parsing Backend Data

-12.3 DrySister Look at Girls App (Version 1) - 3. Image Loading Optimization (Writing an Image Cache Framework)

-12.4 DrySister Look at Girls App (Version 1) - 4. Adding Data Caching (Introducing SQLite)

-12.5 DrySister Look at Girls App (Version 1) - 5. Code Review, Adjustment, and Logging Class Writing

-12.6 DrySister Look at Girls App (Version 1) - 6. Icon Creation, Obfuscation, Signing, APK Slimming, App Release

Follow on WeChat

❮ Cpp Virtual Function Verilog2 Level Modeling ❯