2. Setting Up Your Android Development Environment.

Slides:



Advertisements
Similar presentations
Lecture 6 Testing and Debugging on a Physical Android Device and other Power User Stuff.
Advertisements

Objectives Overview Define an operating system
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Android Tools & Wireless ADB Αντρέας Λύμπουρας Θεόφιλος Φωκάς Ζαχαρίας Χ’’Λάμπρου.
A N I NTRODUCTION TO A NDROID P ROGRAMMING Xinfeng Li CSE OSU.
Research Development for Android Coopman Tom. What is Android?  Smartphone operating system  Google  Popular  ‘Easy to develop’  Open-Source  Linux.
Get android development environment running. Install – Get and install JDK 5 or 6 (see link in the.
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Android and Project Structure. Android Android OS – Built on Linux Kernel – Phones – Netbooks – Readers – Other???
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
Android 1: Background Kirk Scott Buzzwords 1.2 Development Software 1.3 Getting Started 1.4 Preliminaries to Trying to Make It Work the First Time.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
What is Android? Android is among the most popular operating systems aimed towards mobile devices such as smartphones, and is currently the most widely.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
Android Application Development CSE 5520/4520 Wireless Networks.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Android Introduction Platform Overview.
Sayed Ahmed BSc. Eng. In Computer Sc. and Eng. (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just.
Android 2: Introduction to the Technology Kirk Scott 1.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Wireless Mobility with Android 1 Presented by: Ung Yean MS. Computer Science American University, Washington DC, USA.
Subtitle touch | Title of presentation | Date DD/MM/YYYY Touch Cloud Android SDK Ghady Rayess – Jan 19 th, 2013.
Android Programming By Mohsen Biglari Android Programming, Part1: Introduction 1 Part1: Introduction By Mohsen Biglari.
Vs. Ease of Developing 3 rd Party Applications. Points of Interest Closed Source vs. Open Source – Does It Matter? Objective-C vs. Java – Implementation.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
Smart Phone Laboratory ECEN 489 Srinivas Shakkottai.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
Explain the purpose of an operating system
Android for Java Developers Denver Java Users Group Jan 11, Mike
Presented By: Muhammad Tariq Software Engineer Android Training course.
Android Security Auditing Slides and projects at samsclass.info.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Using and developing on the Android Dev Phone 1. Setup At the gmail credentials screen, skip the step Go to Settings->Wireless Controls  Enable Wi-Fi.
Chapter 9 Operating Systems Discovering Computers Technology in a World of Computers, Mobile Devices, and the Internet.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
INTRODUCTION TO JAVA AND ANDROID. Slide 2 Our Ecosystem Java Eclipse Android SDK.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Installation of Visual Studio Android emulator and Android Studio
Intoduction to Andriod studio Environment With a hello world program.
Master Software Solutions Pvt.Ltd.. These days the demand of smart phone is being increased and we have different types of client e.g. Touch Phone, tables,
Best 5 Mobile App Development Tools for Developer's to think beyond the Limitation.
Android. Android An Open Handset Alliance Project A software platform and operating system for mobile devices Based on the Linux kernel Developed by Google.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Submitted By: Tarun Tyagi Website- - Enable USB Debugging.
CHAPTER 7 Operating System Copyright © Cengage Learning. All rights reserved.
Day 1 Session 2. Setup & Installation
COM594: Mobile Technology Practical – Week 1 Android and Android Studio.
DISCOVERING COMPUTERS 2018 Digital Technology, Data, and Devices
Mobile Device Development
Android Mobile Application Development
Obtaining the Required Tools
Wireless Mobility with Android
Android.
Development-Introduction
Android Developer Fundamentals V2
Android Application Development
Korea Software HRD Center
Android Platform, Android App Basic Components
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

2. Setting Up Your Android Development Environment

2.1 Configuring Your Development Environment 2.2 Exploring the Android SDK

2.1 Configuring Your Development Environment To develop Android applications, you need to have the following software installed on your computer:  The Java Development Kit(JDK) Version 5,6 or 7 available for download at  A compatible Java IDE such as Eclipse along with its JDT plug-in, available for download at  The Android SDK, tools and documentation, available for download at  The Android Development Tools (ADT) plug-in for Eclipse, available for download through the Eclipse software update mechanism. For instructions on how to install this plug-in, see

Configuring Your Operating System for Device Debugging To install and debug Android applications on Android devices, you need to configure your operating system to access the phone via the USB cable (see Figure 2.1). On some operating systems, such as Mac OS, this may just work. However, for Windows installations, you need to install the appropriate USB driver.You can download the Windows USB driver from the following website:

Configuring Your Android Hardware for Debugging Android devices have debugging disabled by default. Your Android device must be enabled for debugging via a USB connection in order to develop applications and run them on the device. First, you need to enable your device to install Android applications other than those from the Android Market. Android device by selecting Home >> Menu >> Settings >> Application >> Development (Figure 2.2) Here you should enable the following options: USB Debugging: This setting enables you to debug your applications via the USB connection. Stay Awake: This convenient setting keeps the phone from sleeping in the middle of your development work, as long as the device is plugged in. Allow Mock Locations: This setting enables you to send mock location information to the phone for development purposes and is very convenient for applications using location-based services (LBS).

2.2 Exploring the Android SDK The Android SDK comes with five major components:  the Android SDK License Agreement  the Android Documentation  Application Framework  Tools  Sample Applications  Understanding the Android SDK License Agreement Rights granted: Using the Android SDK does not grant you permission to use any Google brands, logos, or trade names. You will not remove any of the copyright notices there in. SDK changes and backward compatibility: Google may change the Android SDK at any time, without notice, without regard to backward compatibility. Android application developer rights: You retain all rights to any Android software you develop with the SDK, including intellectual property rights. You also retain all responsibility for your own work.

Android application privacy requirements: You agree that your applications will protect the privacy and legal rights of its users. If your application uses or accesses personal and private information about the user (usernames, passwords, and so on), then your application will provide an adequate privacy notice and keep that data stored securely. Note that privacy laws and regulations may vary by user location; you as a developer are solely responsible for managing this data appropriately. Android application malware requirements: You are responsible for all applications you develop. You agree not to write disruptive applications or malware. You are solely responsible for all data transmitted through your application. Additional terms for specific Google APIs: Use of the Android Maps API is subject to further Terms of Service. Develop at your own risk: Any harm that comes about from developing with the Android SDK is your own fault and not Google’s.

Exploring the Android Application Framework The Android application framework is provided in the android.jar file.The Android SDK is made up of several important packages, as shown in Table 2.1.

Android SDK and AVD Manager The Android SDK and AVD Manager, shown in Figure 2.5, is a tool integrated into Eclipse. This tool performs two major functions: management of multiple versions of the Android SDK on the development machine and management of the developer’s Android Virtual Device (AVD) configurations. Android Emulator Emulator tool frequently when designing and developing Android applications.The emulator runs on your computer and behaves much as a mobile device would.You can load Android applications into the emulator, test, and debug them. Dalvik Debug Monitor Server (DDMS) The Dalvik Debug Monitor Server (DDMS) is a command-line tool that has also been integrated into Eclipse as a perspective (see Figure 2.7).This tool provides you with direct access to the device—whether it’s the emulator virtual device or the physical device.You use DDMS to view and manage processes and threads running on the device, view heap data, attach to processes to debug, and a variety of other tasks.

Android Debug Bridge (ADB) The Android Debug Bridge (ADB) is a client-server tool used to enable developers to debug Android code on the emulator and the device using a standard Java IDE such as Eclipse. The DDMS and the Android Development Plug-In for Eclipse both use the ADB to facilitate interaction between the development environment and the device (or emulator). Android Hierarchy Viewer The Android Hierarchy Viewer (see Figure 2.8), a visual tool that illustrates layout component relationships, helps developers design and debug user interfaces. Developers can use this tool to inspect the View properties and develop pixel-perfect layouts.