From d16db79ed8e1f08906536beb3f3cf8496795ec72 Mon Sep 17 00:00:00 2001
From: Rich Slogar To develop apps for Android devices, you use a set of tools that are included in the Android SDK.
-Once you've downloaded and installed the SDK, you can access these tools right from your Eclipse IDE,
-through the ADT plugin, or from the command line. Developing with Eclipse is the preferred method because
-it can directly invoke the tools that you need while developing applications.
However, you may choose to develop with another IDE or a simple text editor and invoke the - tools on the command line or with scripts. This is a less streamlined way to develop because you - will sometimes have to call command line tools manually, but you will have access to the same - number of features that you would have in Eclipse.
+However, you may choose to develop with another IDE or a simple text editor and invoke the +tools on the command line or with scripts. This is a less streamlined way to develop because you +will sometimes have to call command line tools manually, but you will have access to the same +number of features that you would have in Android Studio.
The basic steps for developing applications (with or without Eclipse) are shown in figure 1. The -development steps encompass four development phases, which include:
+The basic steps for developing applications (with or without Android Studio) are shown in +figure 1. The development steps encompass four development phases, which include:
During this phase you install and set up your development environment. You also create Android Virtual Devices (AVDs) and connect hardware devices on which you can install your applications.
-See Managing Virtual Devices - and Using Hardware Devices for more +
See Managing Virtual Devices + and Using Hardware Devices for more information.
During this phase you set up and develop your Android project, which contains all of the - source code and resource files for your application. For more information, see - Create an Android project.
+During this phase you set up and develop your Android Studio project and application modules, + which contain all of the source code and resource files for your application. For more + information, see + Create an Android project.
During this phase you build your project into a debuggable .apk
package that you
- can install and run on the emulator or an Android-powered device. If you are using Eclipse,
- builds are generated each time you project is saved. If you're using another IDE,
- you can build your project using Ant and install it on a device using
- adb. For more information, see
- Build and run your application.
Next, you debug your application using a JDWP-compliant debugger along with the debugging - and logging tools that are provided with the Android SDK. Eclipse already comes packaged with - a compatible debugger. For more information see, - Debug your application with the - SDK debugging and logging tools.
+During this phase you build your project into a debuggable .apk
package(s)
+ that you can install and run on the emulator or an Android-powered device. Android Studio uses
+ a build system based on Gradle
+ that provides flexibility, customized build variants, dependency resolution, and much more.
+ If you're using another IDE, you can build your project using Gradle and install it on a device
+ using adb. For more information, see
+ Build and run your application.
Next, with Android Studio you debug your application using the + Android Debug Monitor and device log messages + (logact) along with the IntelliJ IDEA intelligent + coding features. You can also use a JDWP-compliant debugger along with the debugging and logging + tools that are provided with the Android SDK. For more information see + Debug your application with the SDK debugging and logging tools.
Last, you test your application using various Android SDK testing tools. For more information, see Test your application with the Testing and Instrumentation framework.
During this phase you configure and build your application for release and distribute your - application to users. For more information, see - Publishing Overview.
+ application to users. For more information, see + Publishing + Overview.When developing in IDEs or editors other than Eclipse, be familiar with - all of the tools below, because you will have to run them from the command line.
+When developing in IDEs or editors other than Android Studio, be familiar with + all of the tools below, because you will have to run them from the command line or script.
If you are using Eclipse and ADT, tools such as adb
and android
- are automatically called by Eclipse and ADT so you don't have to manually invoke these tools.
+
If you are using Android Studio, tools such as adb
and android
+ are automatically called by Android Studio so you don't have to manually invoke these tools.
You need to be familiar with adb
, however, because certain functions are not
-accessible from
- Eclipse, such as the adb
shell commands. You might also need to call Keytool and
-Jarsigner to
- sign your applications, but you can set up Eclipse to do this automatically as well.
adb
shell commands. You might also
+ need to call Keytool and Jarsigner to sign your applications, but you can set up Android Studio
+ to do this automatically as well.
For more information on the tools provided with the Android SDK, see the - Tools section of the documentation.
- -- The tools described in this section are not developed by the Android SDK team. The Android Dev Guide - does not provide documentation for these tools. Please refer to the linked documents in each - section for documentation. -
-- IntelliJ IDEA is a powerful Java IDE from JetBrains that provides - full-cycle Android development support in both the free Community - Edition and the Ultimate edition. -
-- The IDE ensures compatibility with the latest Android SDK and offers a - smart code editor with completion, quick navigation between code and - resources, a graphical debugger, unit testing support using Android - Testing Framework, and the ability to run applications in either the - emulator or a USB-connected device. -
-- Links: -
- + Tools section of the documentation. + + -- 2.11.0