13-Android GUIx - dforeman.cs.bingh

Download Report

Transcript 13-Android GUIx - dforeman.cs.bingh

Android
The Eclipse IDE
Installation
• Requirements:
• Eclipse
• Java
• Windows
• All must match (32-bit OR 64-bit)
• If you have a 64-bit OS & 32-bit browser, you need BOTH 32- & 64-bit Java and
a 64-bit eclipse
Starting a project
2nd screen
Final screen
Android Developer Tools
To add the ADT plugin to Eclipse:
1.Start Eclipse, then select Help > Install New Software.
2.Click Add, in the top-right corner.
3.In the Add Repository dialog that appears
• Enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Note: The ADT update site requires a secure connection.
Make sure the update site URL you enter starts with HTTPS.
4.Click OK.
5.In the Available Software dialog, select Developer Tools and click Next.
6.You'll see a list of the tools to be downloaded. Click Next.
7.Click Next again
8.Read and accept the license agreements, then click Finish.
9.If you get a security warning saying that the authenticity or validity
of the software can't be established, click OK.
10.When the installation completes, restart Eclipse.
Install Android SDK tools
• If the SDK Manager doesn't start, manually install the SDK library from
here:
http://developer.android.com/sdk/installing/index.html?pkg=tools
•
•
•
•
•
Unzip the package and run the SDK Manager
MOVE the folder to where you want the SDK package to reside
Select Tools (all tools + updates)
Select the latest Android Platform (includes latest SDK)
Extras/Android Support Library only
Another Installation Method
How to download Eclipse pre-configured with the ADT
• Go to: http://developer.android.com/sdk/index.html#download
• Download the ADT-bundle
• Extract the ADT folder
• Click on \Eclipse\eclipse.exe to start the IDE
Terms
• Workbench – this is the IDE (like VS)
• Perspectives – 1 or more views & editors
• Controls content of menus, etc.
• CDT – C/C++ Development Toolkit
• Does NOT include compiler
• Toolchain – collection of required add-ins
• Installation order is pre-defined & fixed
• Mingw – installer for app that run on windows
• Cygwin – gnu… for running in Cygwin environment
Android Virtual Device Creation
Errors
Choosing a working emulator