ผลต่างระหว่างรุ่นของ "Preparing Android Development Environment"
ไปยังการนำทาง
ไปยังการค้นหา
Chaiporn (คุย | มีส่วนร่วม) |
Chaiporn (คุย | มีส่วนร่วม) |
||
แถว 16: | แถว 16: | ||
Test your ADT bundle installation by creating a simple application using the steps in http://developer.android.com/training/basics/firstapp/creating-project.html. | Test your ADT bundle installation by creating a simple application using the steps in http://developer.android.com/training/basics/firstapp/creating-project.html. | ||
+ | |||
+ | == Running Application on an Emulator == | ||
+ | |||
+ | * First, create an Android Virtual Device (AVD) by clicking the menu Window -> Android Virtual Device Manager. | ||
+ | * In the Android Virtual Device Manager panel, click New. | ||
+ | * Fill in the details for the new AVD. For example, | ||
+ | ** Name: My Tab Emulator | ||
+ | ** Device: 10.1" WXGA (Tablet) (1280 x 800: mdpi) | ||
+ | ** Target: Android 4.4.2 - API Level 19 | ||
+ | ** CPU/ABI: ARM (armeabi-v7a) | ||
+ | ** Skin: HVGA | ||
+ | ** SD Card Size: 64 MiB | ||
+ | ** Emulation Options: Snapshot | ||
+ | : These details can be changed later on. | ||
+ | * Click OK to create your AVD. | ||
+ | * Back to the Android Virtual Device Manager panel, select the newly created AVD and click Start. | ||
+ | After the emulator boots up, unlock the emulator screen. |
รุ่นแก้ไขเมื่อ 09:54, 30 มีนาคม 2557
To prepare your machine for developing a native Android application, you will need Eclipse IDE with the ADT (Android Developer Tools) plugin, and Android SDK tools. The most convenient way is to install the ADT bundle, which includes a version of the Eclipse IDE with built-in ADT.
เนื้อหา
Downloading and Installing JDK
Eclipse requires Java Development Kit (JDK) and Java Runtime Environment (JRE) to operate. Follow these steps to download and install the latest version of JDK, which also includes a version of JRE.
- Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download the latest version of JDK for your platform
- Double click the .exe file to start the installation process
Downloading and Installing ADT bundle
- Download the ADT bundle from http://developer.android.com/sdk/index.html
- Extract the ZIP file
adt-bundle-<os_platform>.zip
into an appropriate location, such asC:\android
- Open the
adt-bundle-<os_platform>/eclipse/
directory and launch eclipse
Creating Your First Application
Test your ADT bundle installation by creating a simple application using the steps in http://developer.android.com/training/basics/firstapp/creating-project.html.
Running Application on an Emulator
- First, create an Android Virtual Device (AVD) by clicking the menu Window -> Android Virtual Device Manager.
- In the Android Virtual Device Manager panel, click New.
- Fill in the details for the new AVD. For example,
- Name: My Tab Emulator
- Device: 10.1" WXGA (Tablet) (1280 x 800: mdpi)
- Target: Android 4.4.2 - API Level 19
- CPU/ABI: ARM (armeabi-v7a)
- Skin: HVGA
- SD Card Size: 64 MiB
- Emulation Options: Snapshot
- These details can be changed later on.
- Click OK to create your AVD.
- Back to the Android Virtual Device Manager panel, select the newly created AVD and click Start.
After the emulator boots up, unlock the emulator screen.