© Frank Mueller & Seokyong Hong (TA) North Carolina State University Center for Efficient, Secure and Reliable Computing Android Installation Guide (2)

Slides:



Advertisements
Similar presentations
Android architecture overview
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Android Tools & Wireless ADB Αντρέας Λύμπουρας Θεόφιλος Φωκάς Ζαχαρίας Χ’’Λάμπρου.
Android Aims to bring Internet-style innovation and openness to mobile phones.
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
User Interface Android Applications. Activities An activity presents a visual user interface. Each activity is given a default window to draw in. The.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
Debugging Android Applications
Basic, Basic, Basic Android. What are Packages? Page 346 in text Package statement goes before any import statements Indicates that the class declared.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
2. Setting Up Your Android Development Environment.
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
Android Application Development with Java UPenn CS4HS 2011 Chris Murphy
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
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 **
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
@2011 Mihail L. Sichitiu1 Android Introduction Hello World.
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 Application Development 2013 PClassic Chris Murphy 1.
Android Introduction Platform Overview.
Better reference the original webpage :
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Introduction to Android Programming Content Basic environmental structure Building a simple app Debugging.
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
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.
Testing with Android Part I of II. Android Testing Framework Based on JUnit The Android JUnit extensions provide component-specific test case classes.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
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,
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Android for Java Developers Denver Java Users Group Jan 11, Mike
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
Presented By: Muhammad Tariq Software Engineer Android Training course.
POS 406 Java Technology And Beginning Java Code
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Active-HDL Interfaces Debugging C Code Course 10.
Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
First Venture into the Android World Chapter 1 Part 2.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
1 Android Introduction Platform Overview. 2 What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
Intoduction to Andriod studio Environment With a hello world program.
Accelerometer based motion gestures for mobile devices Presented by – Neel Parikh Advisor Committee members Dr. Chris Pollett Dr. Robert Chun Dr. Mark.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Day 1 Session 2. Setup & Installation
Introduction to Android Programming
Mobile Device Development
Android Mobile Application Development
Android Application Development 1 6 May 2018
Obtaining the Required Tools
Android.
Android 基礎.
CMPE419 Mobile Application Development
Review of Previous Lesson
CMPE419 Mobile Application Development
Presentation transcript:

© Frank Mueller & Seokyong Hong (TA) North Carolina State University Center for Efficient, Secure and Reliable Computing Android Installation Guide (2)

2 Outline Install JDK Install Android SDK Install Eclipse Install Eclipse Plug-ins for Android Sample Project: Hello, Android

3 Installation - JDK JDK is required to run Eclipse and develop Android applications. Installation Process Download the latest version of JDK from Install the downloaded JDK Add the path of the JDK's 'bin' directory to the system  For Linux, add it to ~/.bash_profile: # vi ~/.bash_profile PATH=$PATH:/usr/java/jdk1.6.X_XX/bin # source ~/.bash_profile

4 Installation - JDK (Cont.) Installation Process (Cont.)  For Windows, add it to Environment Varaibles:

5 Installation - JDK (Cont.) Test If you have successfully installed JDK, you should be able to see following messages in your command prompt window or terminal: # javac -version javac 1.6.X_XX

6 Installation - Android SDK Android SDK Source Tree SDK ROOT Development Tools System Images Sample Code and Applications Documentation DirectoryDescription Development Tools A variety of tools for developing and debugging application code and designing an application UI System ImagesAndroid 1.1 system images Sample Code and Applications A variety of tutorials and samples DocumentationA full set of local documentation

7 Installation - Android SDK (Cont) Development Tools Two most important tools  The Android emulator  The Android development tools plug-in for Eclipse

8 Installation - Android SDK (Cont) Development Tools (Cont) Hierarchy Viewer  A tool that allows developers to debug and optimize user interface  Providing a visual representation of layout's hierarchy of Views and a magnified inspector of the current display with a pixel grid Android Debug Bridge (adb)  A tool that enables: installation of Android Package Files (.apk) on an emulator ot device from a command line linking a standard debugger to applications code running on an emulator or device

9 Installation - Android SDK (Cont) Development Tools (Cont) Draw 9-patch  A WYSIWYG graphic editor that offers a handy way to create NinePatch images  NinePatch image  A strechable bitmap image which Android will automatically resize to accomodate the contents of the View where it is placed as the background  A standard PNG image that includes an extra 1-pixel- wide border Android Asset Packaging Tool (aapt)  A tool that lets developers create Android Package Files (.apk) containing the binaries and resources

10 Installation - Android SDK (Cont) Development Tools (Cont) Dalvik Debug Monitor Service (ddms)  A tool that lets developers manage processes on an emulator or device and assists in debugging  Functions  Killing processes  Selecting a specific process to debug  Generating trace data  Viewing heap and thread information  Taking screenshots of the emulator or device

11 Installation - Android SDK (Cont) Development Tools (Cont) Android Interface Description Language (aidl)  A language that lets developers generate code for an inter- process interface, such as what a service might use sqlite3  A tool that lets you access the SQLite data files created and used by Android applications Traceview  A tool that produces graphical analysis views of trace log data that developers can generate from Android application

12 Installation - Android SDK (Cont) Development Tools (Cont) mksdcard  A tool that helps developers create a disk image that can be used with the emulator, to simulate the presence of an external storage card (such as an SD card) dx  A tool that rewrites.class bytecode into Android bytecode (.dex)

13 Installation - Android SDK (Cont) Development Tools (Cont) UI/Application Exerciser Monkey  A program that runs on emulator or device with generating pseudo-random streams of user events (clicks, touches, or gestures), as well as a number of system-level events  Can be used to stress-test applications being developed activitycreator  A script that generates And build files to compile Android applications More detail information is available with the following link:

14 Installation - Android SDK (Cont) Installation Process Download the Android SDK from: Unpack the compressed file into a location you prefer. Add the path to the SDK tools directory " /tools" to ~/.bash_profile (Linux) or Environment Variables (Windows)

15 Installation - Android SDK (Cont) Test If you have successfully installed the Android SDK, you should be able to see following messages in your command prompt window or terminal: # dw --version dx version 1.1

16 Installation - Eclipse Eclipse An Integrated Development Toolkit licensed under Eclipse Public License An open source project developed by the Eclipse community:

17 Installation - Eclipse (Cont) Eclipse Platform The Eclipse platform defines an open architecture to allow plug-in developers to add a variety of function to the basic tooling platform.

18 Installation - Eclipse (Cont) The Eclipse community provides various plug-ins: Plug-inFunction JDT provides the capability to create, edit, navigate, build, and debug projects that use Java as a programming language CDT provides the capability to create, edit, navigate, build, and debug projects that use C and/or C++ as a programming language UML2provides the capability to create UML models...

19 Installation - Eclipse (Cont) Installation Process Download Eclipse from Currently, a Java or RCP version of Eclipse 3.3 (Europa) or Eclipse 3.4 (Ganymede) are recommended. Unpack the downloaded file into a path you prefer. For example, /home/user1/eclipse (Linux) or C:\Program Files\eclipse (Windows) Add the path to.bash_profile (Linux) or Environment Variables (Windows)

20 Installation - Eclipse (Cont) Test If you have successfully installed the Android SDK, you should be able to see following application: # eclipse

21 Installation - Android Development Tools ADT (Android Development Tools) provides a powerful, integrated enviornment to build Android applications. Installation Process (based on Eclipse 3.4 Ganymede) Start Eclipse, then select Help > Software Updates.... In the dialog that appears, click the Available Software tab. Click Add Site... and enter following location: or Back in the Available Software view, select the checkbox next to Developer Tools and click Install....

22 Installation - ADT (Cont) Installation Process (Cont) On the subsequent install window, check both "Android Developer Tools" and "Android Editors".

23 Installation - ADT (Cont) Installation Process (Cont) Accept the license agreement and click "Finish". Restart Eclipse. Modify Eclipse preferences to point to the Android SDK directory:  Select Window > Preferences... to open the Preferences panel.  Select Android from the left panel.  For the SDK Location in the main panel, click Browse... and locate the SDK directory.  Click Apply and then OK.

24 Sample Project - "Hello, Android" Create "HelloAndroid" project. ① Select the File > New > Project menu item and select "Android Project" and click Next. ② Fill out the project details:

25 Sample Project - "Hello, Android" (Cont) Take a look at HelloAndroid.java (HelloAndroid > src > com.android.hello) and modify the code like: package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); }

26 Sample Project - "Hello, Android" (Cont) Source Description Creating a TextView object TextView tv = new TextView(this);  A View (a drawable object) subclass that handles text  The argument to TextView's constructor: an Android Context instance.

27 Sample Project - "Hello, Android" (Cont) Source Description (Cont) Tell the TextView object to display a String: tv.setText("Hello, Android"); Connect the TextView object with on-screen display: setContentView(tv);

28 Sample Project - "Hello, Android" (Cont) Test ① Select the Run > Run Configuration menu entry. ② Highlight the "Android Application" entry, and then click the icons in the top left corner (the one depicting a sheet of paper with a plus sign in the corner) or simply double-click the highlighted entry. ③ Change the name "New_configuration" to something like "Hello Android". ④ Pick the HelloAndroid project by clicking the "Browse" button. ⑤ Click "Apply" and then "Run".