Env: MAC OS X 10.6.6
1. Download and install Android SDK
http://dl.google.com/android/android-sdk_r09-mac_x86.zip
2. Install ADT Plugin for Eclipse
- URL : https://dl-ssl.google.com/android/eclipse/
- Archive zip: http://dl.google.com/android/ADT_9.0.0.zip
3. Lauch Android SDK and AVD Manager
- Go to /android-sdk-mac_x86/tools and double click android
- Eclipse: Window/Android SDK and AVD Manager
Click Available Packages at left panel and select the one need to install
4. Create an Android Virtual Device (AVD)
<zt>: http://developer.android.com/resources/tutorials/hello-world.html
- Eclipse: Window > Android SDK and AVD Manager
Select Virtual Devices in the left panel.
The Create New AVD dialog appears.
Type the name of the AVD, such as "my_avd".
Choose a target. The target is the platform (that is, the version of the Android SDK, such as 2.1) you want to run on the emulator.
You can ignore the rest of the fields for now.
Click Create AVD.
5. Create a test app as the normal way in Eclipse
<zt> http://developer.android.com/resources/tutorials/hello-world.html
Here is a description of each field:
Project Name
This is the Eclipse Project name — the name of the directory that will contain the project files.
Application Name
This is the human-readable title for your application — the name that will appear on the Android device.
Package Name
This is the package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under. This also sets the package name under which the stub Activity will be generated.
Your package name must be unique across all packages installed on the Android system; for this reason, it's important to use a standard domain-style package for your applications. The example above uses the "com.example" namespace, which is a namespace reserved for example documentation — when you develop your own applications, you should use a namespace that's appropriate to your organization or entity.
Create Activity
This is the name for the class stub that will be generated by the plugin. This will be a subclass of Android's Activity class. An Activity is simply a class that can run and do work. It can create a UI if it chooses, but it doesn't need to. As the checkbox suggests, this is optional, but an Activity is almost always used as the basis for an application.
Min SDK Version
This value specifies the minimum API Level required by your application. For more information, see Android API Levels.
Other fields: The checkbox for "Use default location" allows you to change the location on disk where the project's files will be generated and stored. "Build Target" is the platform target that your application will be compiled against (this should be selected automatically, based on your Min SDK Version).
6. Construct UI on HelloAndroid.java and modify 2 line to run it as Android Project
package com.example.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
- 大小: 19.9 KB
分享到:
相关推荐
Android的开发团队专门针对Eclipse IDE定制了一个插件:Android Development Tools(ADT)。 下面是在线安装ADT的方法: 启动Eclipse,点击 Help菜单 -> Install New Software… ?,点击弹出对话框中的Add… 按钮。
《Android Development Tools (0.97) 源代码解析》 Android Development Tools(简称ADT)是Android开发者用于构建、调试和优化应用程序的重要工具集。版本0.97的ADT源代码提供了深入理解其内部工作原理的机会,这...
**Android Development Tools (ADT) 23.0.6 离线安装包详解** Android Development Tools(ADT)是Google为Eclipse IDE提供的一个插件,它极大地提升了开发者在构建、调试和发布Android应用时的效率。ADT 23.0.6是...
**Android Development Tools (ADT)** 是一套专门为**Eclipse**集成开发环境(IDE)设计的插件,用于帮助开发者创建、调试和发布Android应用程序。这个版本号"22.2.1"表明它是ADT的一个特定更新,可能包含了错误修复...
Android Mobile Development是这本书的标签,意味着内容可能涉及Android应用开发的各个方面,包括但不限于用户界面设计、活动管理、多线程、数据存储(SQLite、SharedPreferences、ContentProvider)、网络通信...
5. **Android Development Tools (ADT)**: 虽然ADT主要是一个Eclipse插件,但与IntelliJ IDEA等现代IDE集成时,它也提供了一些功能,如图形布局编辑器和项目向导,帮助开发者快速创建和设计用户界面。 在Windows版...
Infineon-Memtool-DevelopmentTools-v06_00-EN.exe
在Android开发环境中,**SDK(Software Development Kit)** 是一个集成了各种工具和库的集合,它允许开发者创建、测试和发布Android应用。**SDK Tools** 是SDK中的一个重要子集,包括了编译、打包、模拟器管理、...
4. **ADT (Android Development Toolkit)**:虽然现在ADT主要已被Android Studio取代,但在早期,它是一个Eclipse插件,用于提供集成的开发环境。不过,这里的描述中并未提及ADT,可能指的是独立的SDK Tools。 5. *...
The Busy Coder's Guide to Android Development Android开发经典图书, 最新版8.1 epub格式,pdf太大了
Android SDK Tools for MAC是Android开发者在Mac环境下进行应用开发所必需的重要工具包。它包含了用于构建、调试和发布Android应用程序的各种工具。以下是对这个官方工具包的详细解释: 1. **Android SDK**: SDK...
Microchip is proud to offer development tools for AVR ® MCUs in addition to our classic development tools for PIC ® MCUs and dsPIC ® DSCs. Together, Microchip offers the strongest development tool ...
The Busy Coder's Guide to Android Development 8.9 - 2017.mobi kindle 可以用
Android开发工具(Android Development Tools,简称ADT)是Google为开发者提供的集成开发环境,用于创建、测试和调试Android应用程序。它包含了一系列必要的组件和功能,帮助开发者高效地进行Android应用开发。本文...
These tools are required for Android app development. They're also needed if you want to unlock your device bootloader and flash it with a new system image. Although some new features in these tools...
busy coders guide android development busy coders guide android development busy coders guide android development busy coders guide android development busy coders guide android development busy ...
• Retired the chapter on dynamic code, the chapter on Android Things, the chapter on SlidingDrawer (from the Widget Catalog), and the chapter on l PREFACE large screen strategies, as well as some ...
Android Development with Kotlin 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
UML development tools UML development tools UML development tools UML development tools
Head First Android Development cuts through the fog of dozens of components, hundreds of API calls and focuses on the core skills you need. Do you want a book that is more than simply a reproduction ...