1. JDK (Java Development Kit) Install
다 운로드 사이트에서 "JDK6"를 다운로드 후 설치합니다. (JRE만 설치해도 실행은 되지만 JDK를 설치 하는 것이 좋을 것 같네요.)
java.sun.com
2. EClipse Install
url : http://www.eclipse.org/downloads/
1. download : http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-win32.zip
2. uncompress eclipse-SDK-3.5.2-win32.zip
location : C:\WEB_APP\eclipse
3. Android SDK Install
1. download : http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/installing.html
2. uncompress android-sdk_r06-windows.zip
location : C:\WEB_APP\ADT
3. ADD PATH
%PATH% = %PATH%;C:\WEB_APP\ADT\android-sdk
3. Installing the ADT Plugin ( http://developer.android.com/sdk/eclipse-adt.html )
1. Start Eclipse, then select Help > Install New Software.
* first time : workspace setting : C:\WEB_APP\eclipse_workspace
2. In the Available Software dialog, click Add....
3. In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field.
In the "Location" field, enter this URL:
https://dl-ssl.google.com/android/eclipse
Note: If you have trouble acquiring the plugin, you can try using "http" in the URL,
instead of "https" (https is preferred for security reasons).
Click OK.
4. Back in the Available Software view,
you should now see "Developer Tools" added to the list.
Select the checkbox next to Developer Tools,
which will automatically select the nested tools Android DDMS
and Android Development Tools. Click Next.
5. In the resulting Install Details dialog,
the Android DDMS and Android Development Tools features are listed.
Click Next to read and accept the license agreement and install any dependencies,
then click Finish.
6. Restart Eclipse.
4. Configuring the ADT Plugin
Once you've successfully downnloaded ADT as described above,
the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
1. Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
2. Select Android from the left panel.
3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
4. Click Apply, then OK.
-------- -------- -------- -------- -------- -------- -------- -------- -------- -------- -------- --------
# Creating an Android Project
The ADT plugin provides a New Project Wizard that you can use to quickly create a new Android project (or a project from existing code). To create a new project:
1. Select File > New > Project.
2. Select Android > Android Project, and click Next.
3. Select the contents for the project:
* Enter a Project Name. This will be the name of the folder where your project is created.
* Under Contents, select Create new project in workspace. Select your project workspace location.
* Under Target, select an Android target to be used as the project's Build Target. The Build Target specifies which Android platform you'd like your application built against.
Unless you know that you'll be using new APIs introduced in the latest SDK, you should select a target with the lowest platform version possible.
Note: You can change your the Build Target for your project at any time: Right-click the project in the Package Explorer, select Properties, select Android and then check the desired Project Target.
* Under Properties, fill in all necessary fields.
o Enter an Application name. This is the human-readable title for your application — the name that will appear on the Android device.
o Enter a Package name. This is the package namespace (following the same rules as for packages in the Java programming language) where all your source code will reside.
o Select Create Activity (optional, of course, but common) and enter a name for your main Activity class.
o Enter a Min SDK Version. This is an integer that indicates the minimum API Level required to properly run your application. Entering this here automatically sets the minSdkVersion attribute in the of your Android Manifest file. If you're unsure of the appropriate API Level to use, copy the API Level listed for the Build Target you selected in the Target tab.
4. Click Finish.
Tip: You can also start the New Project Wizard from the New icon in the toolbar.
Once you complete the New Project Wizard, ADT creates the following folders and files in your new project:
src/
Includes your stub Activity Java file. All other Java files for your application go here.
/ (e.g., Android 1.1/)
Includes the android.jar file that your application will build against. This is determined by the build target that you have chosen in the New Project Wizard.
gen/
This contains the Java files generated by ADT, such as your R.java file and interfaces created from AIDL files.
assets/
This is empty. You can use it to store raw asset files.
res/
A folder for your application resources, such as drawable files, layout files, string values, etc. See Application Resources.
AndroidManifest.xml
The Android Manifest for your project. See The AndroidManifest.xml File.
default.properties
This file contains project settings, such as the build target. This files is integral to the project, as such, it should be maintained in a Source Revision Control system. It should never be edited manually — to edit project properties, right-click the project folder and select "Properties".
# Creating an AVD
An Android Virtual Device (AVD) is a device configuration for the emulator that allows you to model real world devices.
In order to run an instance of the emulator, you must create an AVD.
To create an AVD from Eclipse:
1. Select Window > Android SDK and AVD Manager, or click the Android SDK and AVD Manager icon in the Eclipse toolbar.
2. In the Virtual Devices panel, you'll see a list of existing AVDs. Click New to create a new AVD.
3. Fill in the details for the AVD.
Give it a name, a platform target, an SD card size, and a skin (HVGA is default).
Note: Be sure to define a target for your AVD that satisfies your application's Build Target (the AVD platform target must have an API Level equal to or greater than the API Level that your application compiles against).
4. Click Create AVD.
Your AVD is now ready and you can either close the SDK and AVD Manager, create more AVDs, or launch an emulator with the AVD by selecting a device and clicking Start.
For more information about AVDs, read the Android Virtual Devices documentation.
'mobile > android' 카테고리의 다른 글
Android - style Theme (0) | 2019.07.16 |
---|---|
Android - Resource R.java (0) | 2019.07.16 |
Android Life Cycle (0) | 2019.07.16 |
Android Basic - Alert dialog (0) | 2019.07.16 |
Android interview (0) | 2019.07.16 |
댓글