Introduction to Android Development



Similar documents
Installing the Android SDK

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

Getting Started with Android Development

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

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

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

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

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

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

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

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.

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

Setting up Sudoku example on Android Studio

Application Development Setup Guide

Tutorial on Basic Android Setup

Basic Android Setup Windows Version

Android Setup Phase 2

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

How to install and use the File Sharing Outlook Plugin

Download and Installation Instructions. Java JDK Software for Windows

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

Fahim Uddin 1. Java SDK

Android 4.4 App Development Essentials

Android Environment SDK

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

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

1) SETUP ANDROID STUDIO

BioWin Network Installation

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

How to Create an Android Application using Eclipse on Windows 7

8x8 Virtual Office Telephony Interface for Salesforce

Android Environment SDK

Java. How to install the Java Runtime Environment (JRE)

WA1625 Web Services Development Using WebLogic Server v10. Classroom Setup Guide. Web Age Solutions Inc. Copyright 2012 Web Age Solutions Inc.

How to build your first Android Application in Windows

Eclipse installation, configuration and operation

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

Board also Supports MicroBridge

XenMobile Logs Collection Guide

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Access the TCNJ Palo Alto Networks VPN using the GlobalProtect VPN client

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

Example Connection between USB Host and Android

Initial Setup of Microsoft Outlook 2011 with IMAP for OS X Lion

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

Hello World. by Elliot Khazon

ADT Plugin for Eclipse

Android Application Development

SIM900 Eclipse environment install Application Note_V1.00

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

How to Install Applications (APK Files) on Your Android Phone

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

Cisco Cius Development Guide Version 1.0 September 30, 2010

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

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

Lab 0 (Setting up your Development Environment) Week 1

Software Development Environment. Installation Guide

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

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

Tutorial: setting up a web application

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

How to Set Up Your PC for Android Application Development

Python for Series 60 Platform

How To Set Up Dataprotect

Initial Setup of Microsoft Outlook with Google Apps Sync for Windows 7. Initial Setup of Microsoft Outlook with Google Apps Sync for Windows 7

Intel Integrated Native Developer Experience (INDE): IDE Integration for Android*

POOSL IDE Installation Manual

Getting Started: Creating a Simple App

GETTING STARTED WITH SQL SERVER

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

USING SSL/TLS WITH TERMINAL EMULATION

Installing Ruby on Windows XP

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

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

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

IOIO for Android Beginners Guide Introduction

Epidefender Studio Installation notice

How to Set Up Your PC for Android Application Development

Developing In Eclipse, with ADT

DEPLOYING A VISUAL BASIC.NET APPLICATION

Initial Setup of Mozilla Thunderbird with IMAP for Windows 7

Detecting and Removing Spyware From Your Home Computer

SlimDrivers User Manual

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

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

Sophos Mobile Control Startup guide. Product version: 3

Android Development Tools for Eclipse

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

How to use the Eclipse IDE for Java Application Development

Moving Rockwell Software Activation Keys to the VersaView 200R Industrial Computer

FlashAir. Firmware Update Tool Ver User s Manual. (For updating a Mac system via the Internet)

Pharmacy Affairs Branch. Website Database Downloads PUBLIC ACCESS GUIDE

Sophos Mobile Control Startup guide. Product version: 3.5

Android Mobile App Building Tutorial

Silk Test Testing Mobile Web Applications

L.E.A.P.S Electronic Freight Billing System Installation Guide

Tutorial on OpenCV for Android Setup

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

Transcription:

2013 Introduction to Android Development Keshav Bahadoor An basic guide to setting up and building native Android applications Science Technology Workshop & Exposition University of Nigeria, Nsukka Keshav Bahadoor Software Developer, Software House Ltd 6/18/2013 www.keshav.ocsdev.org

Table of Contents 1. Terms and Definitions...3 2. Overview...3 3. Setting up... 3 3.1 Installing the Java JDK...3 3.2 Installing the Android ADT Bundle... 4 3.3 Setting up the Android Development Environment...4 3.3.1 Select the Workspace...5 3.3.2 Welcome Screen... 5 3.3.3 Eclipse overview... 6 4. Running Example Android Applications... 8 4.1 Importing existing Android projects into Eclipse... 8 4.2 Setting up the Android Emulator...12 4.3 Running a Project...16 5. Further Reading...17 2 P a g e

1. Terms and Definitions This section presents some common technological jargon and their explanations. Term Native Application Application Operating System Cross platform IDE SDK Definition An application that is made to run on solely on a particular operating system, such as Android or ios. The software or product that is created to run on mobile devices or computers. The idea of writing code once and having it work across all platforms or operating systems / devices. Integrated Development Environment Software Development Kit 2. Overview Android applications can be created in the following ways: 1. Programming the application specifically for Android devices using the Android SDK (Software Development Kit) and a development environment such as Eclipse. 2. Using an app building tool such as App Inventor (insert link). 3. Programming a solution that works across all platforms or devices, using a cross platform tools (PhoneGap, LibGDX, etc). This document will focus on the first way of creating Android applications. 3. Setting up This section provides a guide to install and setup the software required for building Android applications. 3.1 Installing the Java JDK The Java JDK or Java Development Kit is a release of Java that is aimed at software developers. It is used for developing Java based applications using the Java programming language. The Java JDK can be found at: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html There are two versions of the Java JDK available for the Windows platform, the 32 bit (x86) version and the 64 bit version. Install the version of the JDK that is compatible with your computer. 3 P a g e

To find out if your Windows computer is 32bit or 64bit: Right click on My Computer then select Properties. The version should be displayed here. 3.2 Installing the Android ADT Bundle The android ADT or Android Development Tools bundle is an integrated development environment for the use creation of Android applications. It is a customized version of the Eclipse Integrated Development Environment (IDE). Note on Eclipse Eclipse IDE is a tool that allows you to create various types of Java based applications, including Android applications. It facilitates the creation of projects, adding and deleting of files to the projects, and the editing of code. The ADT Bundle can be downloaded at: http://developer.android.com/sdk/index.html Ensure that you download the correct version of the ADT Bundle (32 bit or 64 bit). After downloading the ADT bundle, it will need to be extracted. This can be done by using winzip, winrar, or 7-zip. You can download 7-zip from here: http://www.7-zip.org/download.html 3.3 Setting up the Android Development Environment After you have installed the Java JDK and the ADT Bundle, you can now open the Eclipse folder and run Eclipse by double clicking on the eclipse icon. 4 P a g e

3.3.1 Select the Workspace When launched, Eclipse will then ask you to select a workspace. The workspace is a location on your computer that Eclipse will use to store all your projects and applications. You can leave the default workspace that Eclipse suggests. You may also select the option Use this as the default and do not ask again. This option tells Eclipse that you will be working with that location always. Note that you can change the workspace at anytime if you wish. Click the OK button to start Eclipse. 3.3.2 Welcome Screen The following screen will be shown. 5 P a g e

Click close button to proceed You may read the welcome note, and then click the close button to proceed. 3.3.3 Eclipse overview The following is an overview of the main windows of the Eclipse environment. 6 P a g e

Package Explorer Code Area Console Memory usage Package Explorer Shows your current packages, projects or applications that you are working on. Code Area Area to edit code files. Console This area displays to the user output, warnings and other messages. Memory Usage Displays the amount of memory Eclipse is currently using. 7 P a g e

4. Running Example Android Applications You can visit the following website to download the android application examples that were covered during the workshop. http://keshav.ocsdev.org/mlearning/ 4.1 Importing existing Android projects into Eclipse Download the Anroid Application Examples zip file, and extract the contents to your computer. You may use winzip, winrar or 7-zip to extract the files. Now, open Eclipse if not already opened. Click File from the top menu bar, and then select the Import menu option. In the resulting dialog box, expand the General folder, and select the Existing Projects into Workspace option. 8 P a g e

Click on the Next button to proceed. In the resulting dialog window, click the Browse button next to Select root directory. Use the resulting file browser to select the Android Application Examples folder that you have extracted. 9 P a g e

Click on the OK button. You should now see the GuessingGame and SpellingGame projects listed in the Projects area as shown below. 10 P a g e

Ensure that both projects are checked. If they are not checked, click the checkbox next to the projects. Next, ensure that the Copy projects into workspace option is checked. This option instructs Eclipse to copy the projects into the workspace. If this is not selected, Eclipse will use the projects from the location specified earlier. It is recommended to copy the projects into workspace to avoid unwanted changes or file deletions to the original projects. After the projects have been imported, they should be visible in the Project Explorer window of Eclipse, as seen below. 11 P a g e

Imported Projects 4.2 Setting up the Android Emulator The Android emulator allows you to emulate an Android device on the computer. This enables you to test or debug Android applications without using a physical Android mobile handset. The main disadvantage of the Android emulator is that it performs much slower than a physical Android device. The Android emulator can be setup as follows. Click Window from the top menu options then select Android Virtual Device Manager (also referred to as the AVD Manager). 12 P a g e

The resulting dialog box that opens is the Android Virtual Device manager (see below). It lists the virtual devices or Android Emulators that are created. For a new installation of Eclipse, there will be no virtual devices. 13 P a g e

A new virtual device or Android emulator must be created by clicking on the New button. The following dialog box will open. 14 P a g e

In this dialog box, you must give the Android virtual device a name. Type the name you want in the AVD Name field. In this example the name AndroidEMU was used. Next, a Device should be specified. This is the virtual android mobile device that the AVD manager will create for you. It is based on some common screen sizes available to consumers. Target sets the version of the Android Operating system you wish you emulate. For now you will leave this as the default setting. The Use Host GPU option at the bottom is a new feature that attempts to produce better performance for the emulator by using various components on your computer. For now you will leave this option unchecked. When you have finished setting up your Android virtual device, click the OK button. The window will close and your Android virtual device will be present on the list of devices available on the AVD manager, as seen below. 15 P a g e

To run the Android virtual device, select it from the AVD list, then click the Start.. button. A window that resembles an android mobile smart phone will appear. It is common for the Android virtual device to take a couple minutes to start. 4.3 Running a Project A project present in the Package Explorer of Eclipse. You can run projects by right clicking on the required project from the Package Explorer, then selecting Run As Android Application. 16 P a g e

5. Further Reading The following is a great video resource on building Android applications using the Java programming language. It is aimed at beginners. Although some things may be outdated, I highly recommend using these videos. http://thenewboston.org/list.php?cat=6 There is a lot of information on the Android Developers official website which will be very useful. http://developer.android.com/index.html 17 P a g e