Android developer Guide (14) -- Introduction

Source: Internet
Author: User

 

Preface

This chapter is the developer Guide/Developing/Introduction, version: Android3.1 r1, translated from: "MeetAndroid", welcome to visit his blog: "http://blog.csdn.net/meetandroid ", thanks again for "MeetAndroid "! We look forward to your participation in translation of Android related information, contact me over140@gmail.com.

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog Garden: http://www.cnblogs.com/

Android Chinese translation group: http://goo.gl/6vJQl

 

Original

Http://developer.android.com/guide/developing/index.html

 

Introduction

It is very convenient to use the tools provided by the SDK to develop applications for Android devices. To use these Tools, you can not only use the Eclipse plug-in called ADT (Android Development Tools), but also use the command line. We recommend that you use Eclipse for development, because it enables you to directly call the required tools when developing applications.

Of course, you can also choose to use other IDE for development. Alternatively, you can only use a simple text editor and use command lines to call tools or execute scripts. For development, this is a few streamlined steps. Although you sometimes have to call the command line tool manually, all these functions are available in Eclipse.

Note: before developing an Android application, make sure that you have read all the steps listed in the installation SDK.

Whether or not Eclipse is used, the basic steps for developing applications are the same:

1. Install Android Virtual Devices or hardware devices.

You need to create an Android virtual device or connect to a hardware device to install the application.

For more information, see manage Virtual Devices and use hardware devices.

2. Create an Android project.

The Android project contains all the source code and resource files of the application. Later, it will be built into a .apk package for installation on Android devices.

3. build and run applications.

If you use Eclipse for development, the build will be executed every time you save the changes. To install the application on the device, click Run. If you are using another IDE, you can use Ant to build the project and use adb to install it to the device.

(Note: whether the Build in Eclipse is Automatically executed after the save operation depends on the menu item Project> Build Automatically status)

4. Use SDK debugging and log tools to debug applications.

Application debugging includes using the JDWP compatible debugger and debugging and logging tools provided by the Android SDK. In Eclipse, a compatible debugger is included.

(Note: JDWP is a Java debugging line protocol. For more information, see here)

5. Use a testing and measurement framework to test applications.

The Android SDK provides a test and measurement framework to help you install and run the test in a simulator or device.

 

 

Necessary command line tools

When using an IDE or editor other than Eclipse for development, you need to be familiar with all of the following tools, which must be executed through the command line.

Android

Create and modify Android projects, and create, move, and delete avds.

Android Emulator

Run your Android Application on an Android simulation platform.

Android Debug Bridge

Interfaces with simulators or connected devices (install applications, execute device shells, send commands, etc ).

In addition to the above SDK tools, the following open source third-party tools are also required:

Ant

It is used to compile the androidproject into an installable .apk file.

Keytool

Keytoolis a component of JDK. It is used to generate a secret library and private libraries to sign the .apk file.

Jarsigner (or similar signature tool)

Use the private token generated by keytoolto sign the .apk file. Jarsigner is also part of JDK.

If Eclipse and ADT are used, both adb and android are called by similar functions of Eclipse and ADT. However, you still need to be familiar with adb, because some of its functions cannot be accessed from Eclipse, such as the adb shell command. You may also need to call Keytool and Jarsigner to sign the application, but it is best to set Eclipse so that it can automatically do this.

For more information about the tools provided by the Android SDK, see the tool section in the documentation.

 

 

Third-party development tools

The tool described below is not developed by the Android SDK team. The Android Development Guide does not provide documents related to these tools. Please find them through the links provided.

 

InIntelliJ IDEADevelopment in progress

IntelliJ IDEA is a powerful Java IDE from JetBrains. Its free community edition and final edition provide complete Android development support.

IDE ensures compatibility with the latest Android SDK, it also provides intelligent code editor, quick navigation between code and resources, graphical debugger, unit test support using the Android testing framework, and applications running on devices connected to simulators or USB. program capabilities.

Link:

IntelliJ IDEA official website

Android support in IntelliJ IDEA

IntelliJ IDEA Android Tutorials

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.