How To Run A Hello World On Android 4.3.3 (Jdk) On A Microsoft Ds.Io (Windows) Or Android 2.7.3 Or Android 3.5.3 On A Pc Or Android 4 (



Similar documents
Getting Started with Android Development

Installing the Android SDK

Lab 0 (Setting up your Development Environment) Week 1

Android Environment SDK

Android Development Setup [Revision Date: 02/16/11]

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

Android Setup Phase 2

Basic Android Setup Windows Version

Fahim Uddin 1. Java SDK

Tutorial on Basic Android Setup

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

Introduction to Android Development

Hello World. by Elliot Khazon

Android Environment SDK

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients.

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Application Development Setup Guide

Android Programming: Installation, Setup, and Getting Started

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us

How to build your first Android Application in Windows

Epidefender Studio Installation notice

Android 4.4 App Development Essentials

DAVE Usage with SVN. Presentation and Tutorial v 2.0. May, 2014

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

POOSL IDE Installation Manual

Beginning with SubclipseSVN

Board also Supports MicroBridge

ADT Plugin for Eclipse

Hudson configuration manual

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

With a single download, the ADT Bundle includes everything you need to begin developing apps:

SIM900 Eclipse environment install Application Note_V1.00

1) SETUP ANDROID STUDIO

Installing Oracle 12c Enterprise on Windows 7 64-Bit

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

Marcum LLP MFT Guide

Android Development. 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

Example Connection between USB Host and Android

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

How to Create an Android Application using Eclipse on Windows 7

Setting up Sudoku example on Android Studio

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly

Eclipse installation, configuration and operation

How to Set Up Your PC for Android Application Development

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

How to Set Up Your PC for Android Application Development

About this Release. Introduction. Prerequisites. Installation. Using the Web SDK Packager

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

buzztouch for Android

Running a Program on an AVD

Introduction to Android Programming (CS5248 Fall 2015)

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc)

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

Titanium Mobile: How-To

educ Office Remove & create new Outlook profile

Robotium Automated Testing for Android

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

Compiere 3.2 Installation Instructions Windows System - Oracle Database

IOIO for Android Beginners Guide Introduction

Jenkins on Windows with StreamBase

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

IIS, FTP Server and Windows

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

Setting Up a Windows Virtual Machine for SANS FOR526

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Android Development Tools for Eclipse

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

Building OWASP ZAP Using Eclipse IDE

Cisco Cius Development Guide Version 1.0 September 30, 2010

How to install and use the File Sharing Outlook Plugin

IRF2000 IWL3000 SRC1000 Application Note - Develop your own Apps with OSGi - getting started

SETTING UP YOUR JAVA DEVELOPER ENVIRONMENT

Contents First Time Setup... 2 Setting up the Legal Vault Client (KiteDrive)... 3 Setting up the KiteDrive Outlook Plugin Using the Legal Vault

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 1 Android SDK & Development Environment. Marco Picone

Practice Fusion API Client Installation Guide for Windows

Android: How To. Thanks. Aman Nijhawan

Android Tutorial. Larry Walters OOSE Fall 2011

Livezilla How to Install on Shared Hosting By: Jon Manning

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

Kony MobileFabric Messaging. Demo App QuickStart Guide. (Building a Sample Application

Android 4.4 App Development Essentials

3. Installation and Configuration. 3.1 Java Development Kit (JDK)

Android Programming and Security

How to use the Eclipse IDE for Java Application Development

Introducing Xcode Source Control

Android Mobile App Building Tutorial

Oculus Mobile Software Development Kit (SDK) Device and Environment Setup Guide

Transcription:

Developing Android applications in Windows Below you will find information about the components needed for developing Android applications and other (optional) software needed to connect to the institution s resources. Step 1 Install the JDK7 If you don t have the Java Development Kit (JDK), you will need to install it. 1. Go to http://www.oracle.com/technetwork/java/javase/downloads and download the current version (7u45) 2. Accept the License Agreement and choose your platform to Continue (Please make sure you are downloading JDK and not JRE and check if your OS is x86 or x64) 3. Follow the instructions for a default installation Registration optional! Method A: Fresh Installation of Android SDK (recommended) Step 2A Download and Install the Android SDK ADT Bundle 1. Go to http://developer.android.com/sdk and download the Android ADT Bundle, it includes Eclipse with built-in Android development tools and Android SDK components. 2. Accept the License Agreement and choose the same platform/architecture you chose when installing the Java JDK (32-bit or 64-bit). 3. If you are not sure which Java JDK version is installed, run a command prompt and run the following command: >> java d64 version If your Java JDK is 64-bit you will see the following message: Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) Otherwise, you will see:

Error: This Java instance does not support a 64-bit JVM. To confirm you have the 32-bit version of JDK you can type the following from command prompt >> java d32 version 4. Follow up by downloading and extracting the current SDK ADT Bundle to your local drive (c:\ adt-bundle-windows) 5. Go to c:\adt-bundle-windows\eclipse and start eclipse.exe. 6. That s it, you can start developing Android applications. The ADT Bundle already comes with the necessary Platforms and Packages to start developing Android Apps. 7. If your intention is to use your private device, you can continue from Step 4B of this guide to add packages and platforms using the Android SDK Manager. Otherwise, continue from Step 5. Method B: Installation over an existing IDE (Eclipse) If you already have an Eclipse installation that you prefer to use. You can download and install the Android SDK separately with the following steps. Otherwise is recommended that you make a fresh installation of the Android SDK using the ADT Bundle (Step 2a). Step 2B Download and install Android SDK 1. Download and install the Android SDK Tools installer from: http://developer.android.com/sdk/index.html#existingide 2. Make note of the name and location in which the SDK is saved on your system. You will need this location when setting up the ADT plugin. 3. When the installation completes the installer offerst to start the Android SDK Manager. Do not start it! Instead move on to Installing the Eclipse Plugin Step 3B Installing the Eclipse Plugin 1. Start Eclipse and go to http://developer.android.com/sdk/installing/installing-adt.html and follow

the instructions 2. You will need at least the Android Development Tools although we recommend selecting all available tools in the repository 3. Restart Eclipse and go to Window -> preferences and select Android. 4. Browse to the SDK location and click OK 5. There is also a video on how to achieve this at http://www.xtensivearts.com/2009/07/03/episode-1-getting-started The video is old but it gives the basics for the installation.

Step 4B Adding Platforms and Packages 1. Open the Android SDK Manager from inside Eclipse. Make sure that the desired Android version is selected. You need at least ONE platform. We recommend that you choose version 4.0.3 (API 15) for the. The versions installed in the devices from the department can vary. If your intention is to use your private device, please make sure you install a supported version for your device. i. Select the latest SDK Platform-tools ii. Select the USB Driver for Windows which will be needed to connect the mobile phone to the developer s computer iii. (Optional) There are some samples available for the different versions. Select a suitable one that you can use to learn about Android and for further reference iv. (Optional) If you would like to use Google Maps, then you will need to install the Google API. 2. Install to continue Note: The Android 4.3 is the latest release and is selected every time the SDK is launched. There are some dependencies that need to be solved and additional packages need to be downloaded. We have little experience with this release as of yet.

Step 5 The Hello World App and Create an AVD When the dev environment is completed, follow the steps in the Hello World tutorial which also guides you to set up the Android emulator. 1. Go to http://developer.android.com/training/basics/firstapp/creatingproject.html and follow the instructions. 2. Run the application and make sure it runs (at least) on the Android 4.0.3 http://developer.android.com/training/basics/firstapp/running-app.html#emulator The AVD Manager is located in the same directory as your SDK Manager. Step 6 There are other tools that might be of interest in the android-sdk-windows\tools such as the DDMS. Run in and find out more. Connect your mobile The Hello World runs fine on an emulator and with this step you ll be ready to use a regular device to upload and run applications on it. 1. Go to http://developer.android.com/tools/device.html and follow instructions 2. Upload your Hello World application and see if you can find out anything else about the Activity you are running Step 7 Subversive (SVN) plugin for Eclipse A simple way to share code between other project members is by using a collaboration tool which supports revision control. Eclipse comes with a default Git client, which is not supported in our department. But you can use free GitHub if you prefer. The following steps are for using the SVN server at the department. More about Subversion (SVN): http://subversion.tigris.org/ http://en.wikipedia.org/wiki/apache_subversion Subversive consists of two parts: Subversive Plug-in and Subversive SVN Connector. You must install both.

1. Go to Help -> Install New Software 2. Choose --All Available Sites-- and type svn or subversive 3. Choose Subversive SVN Team Provider and follow the installation instructions. 4. Restart eclipse. After restart, you will need to install the Connector 5. A pop-up should appear when Eclipse restarts. Select the SVNKit 1.3.8 Implementation and Finish (SVN Kit 1.7.8 is not compatible with SVN server at the department).

6. Then the following screen appears, both the Connectors and the SVNKit should be selected. Select Next and follow the instructions. A license needs to be approved and Eclipse needs to be restarted.

Step 8 Share Project In order to let the other project members to update and commit changes to a project, we need to share it. 1. Highlight your Hello World Project and right click. Select Team -> Share Project

2. Select SVN and Next 3. At the URL for repository location information, type in http://certec-svn.design.lth.se/svn/demo and type in User: demo Password: aid2011 Note: Next time you want to share a project, the credentials for the demo login will be stored automatically. For the real project, you need to use the login and password that will be attributed to your group. To force subversive to forget the stored credentials first close Eclipse. You can then erase the secure_storage file that has just been stored under your home folder : HOME\.eclipse\org.eclipse.equinox.security\ Finally, open Eclipse again. 4. Click on Browse to continue and select trunk and OK

5. Click on Next and answer YES to the question about normalizing the URL 6. On the next dialog, change from Simple Mode to Advanced Mode and leave the default values and go Next

7. Add some comments to your project sharing and select Finish. 8. Here you can add extra comments to your code and how you were thinking when you committed your code. These comments might be of useful in the future when many persons are working on the same project.

9. Click on OK and your code will be submitted to the svn server. Note: If HelloWorld already exists, change the project name before sharing Step 9 Check out a (SVN) project Now we should be able to check out a project and begin experimenting. For the demo, you can use the same username and password given above. The username and passwords for your particular groups which will be given first after you put together your project teams. ote: The login and password might be remembered automatically and thus be set to demo or another group login on a shared computer, remember to use the procedure described in the previous step to force subversive to forget the credentials. 1. In Eclipse, go to File -> New -> Other Select Project from SVN and Next.

2. The URL for the project is http://certec-svn.design.lth.se/svn/demo Enter your username and password 3. Click on Browse and select the Hello World demo in the trunk resource directory that you committed before. Note: Since the project you are trying to check out is the same located in your local computer, delete or move the one in your local workspace before you continue. Be aware that ONLY the last committed changes will be available on the svn server. 4. Click on Next OK and Finish the import.

5. The Check Out As dialog gives different ways on how to check out the project. Just leave the default values and click Finish Be aware that the projects there are for demo purposes and files might disappear or be changed without warnings. In order to commit your changes to the repository, right click on the project, select Team -> Commit Note: You will find additional tools that might be helpful for your project and also ways to revert previous code. Seeking Help After these steps you should now be ready to start experimenting. If you feel you need to, use the tutorials to help you on the way, making gradual changes in the applications, trying to play sounds and starting the vibrator, for example. If you get stuck, these are the steps to follow: a. Search for solutions online (there might be someone else who already has run into your problem). b. Look in the wiki or ask in the forums c. You can also find many tutorials online.

d. Ask Hector for help: hector.caltenco@certec.lth.se, room 522 available times : wednesdays 13.00-15.00 and thursdays 15.00-17.00 REMEMBER: Google is your friend ;o) / Kirre 091028 / revised by Miguel 101022 / revised by Delphine 121029 / revised by Hector 131021