ANDROID DEVELOPMENT KELLY MCBEAN. DEVELOPMENT ENVIRONMENT OVERVIEW Eclipse Standard IDE for Developing Android Applications Install: 1.Java (JDK) – Since.

Slides:



Advertisements
Similar presentations
Android Application Development A Tutorial Driven Course.
Advertisements

Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
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 PROGRAMMING MODULE 1 – GETTING STARTED
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Android Application Development 2013 PClassic Chris Murphy 1.
Creating Android user interfaces using layouts 1Android user interfaces using layouts.
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.
Android: versions Note that: Honeycomb (Android v3.0) A tablet-only release Jelly Bean (Android v4.1) Released on July 09, 2012.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
CS5103 Software Engineering Lecture 08 Android Development II.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
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.
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
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.
Tip Calculator App Building an Android App with Java © by Pearson Education, Inc. All Rights Reserved.
Basic Android Tutorial USF’s Association for Computing Machinery.
DUE Hello World on the Android Platform.
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Android Boot Camp for Developers Using Java, 3E
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
First Venture into the Android World Chapter 1 Part 2.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Recap of Part 1 Terminology Windows FormsAndroidMVP FormActivityView? ControlViewView? ?ServiceModel? Activities Views / ViewGroups Intents Services.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Building User Interfaces Basic Applications
Intoduction to Andriod studio Environment With a hello world program.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
Working with Multiple Activities. Slide 2 Introduction Working with multiple activities Putting together the AndroidManifest.xml file Creating multiple.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
Day 1 Session 2. Setup & Installation
Why Learn Android? Largest installation base of any operating system Over 20,000 Android devices exist Businesses will likely move more to device-based.
Open Handset Alliance.
Android Studio, Android System Basics and Git
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Sensors, maps and fragments:
Mobile Programming Dr. Mohsin Ali Memon.
Working with Libraries
Presentation transcript:

ANDROID DEVELOPMENT KELLY MCBEAN

DEVELOPMENT ENVIRONMENT OVERVIEW Eclipse Standard IDE for Developing Android Applications Install: 1.Java (JDK) – Since Eclipse Runs on top of Java 2.Eclipse Standard 3.Using Eclipse Install Software 1.Developer Tools (Plugins) 2.Android SDK 3.Android APIs

TESTING FOR JAVA If you get the Congratulations message, skip to Installing Eclipse…else continue with the Java Install

INSTALLING JAVA Install Documentation: Java Platform (JDK)

INSTALLING JAVA Install latest version * for appropriate OS * At this time 7u25 is the latest

INSTALLING ECLIPSE Downloads: Install: 1.Save file to a temp folder 2.Open Zip file and copy the eclipse to root (c:\) 3.Run eclipse from c:\eclipse\eclipse.exe 4.Accept the default workspace

INSTALLING PLUG-IN From Inside Eclipse: Menu: Help > Install New Software… Work with: After Accepting License Agreement Eclipse will reboot and continue with installing SDK

INSTALLING SDK Note the Target Location Accept All And Wait…

INSTALLING API The Android APIs are the Android platforms (i.e. 2.2, 4.1, etc.) By Default, only One API is installed To check on Installed Android APIs: Windows > Preferences Android Tab Optional: Menu: Windows > Android SDK Manager Choose Additional APIs to Install

VIRTUAL DEVICES (AVD) The AVD is an emulator instance that enables you to model an actual device APIs are available to emulate many of the most popular Android devices While tethering a device through a USB connection is possible, AVDs are invaluable for testing applications

CREATING A VIRTUAL DEVICE The AVD is an emulator instance that enables you to model an actual device You will need one for each API you want to test… Menu: Windows > AVD Manager

UPDATE ENVIRONMENT PATH My Computer. Properties. Advanced Add C:\android-sdks\tools; C:\android-sdks\platform- tools to … Environment. System. Path Optional?

ECLIPSE DEVELOPMENT ENVIRONMENT FOR ANDROID The Eclipse Development Environment should be ready to go…

CREATING ANDROID APPLICATION Application Name is shown in Play Store Project Name must be unique within Android Workspace Package Name is a Unique Identifier for the Application

ANDROID PLATFORM DISTRIBUTION

ANATOMY OF AN ANDROID APPLICATION src – Contains the Java source files for the project gen – Contains the R.java file, a compiler- generated file that references all the project resources res – All the project resources. Also contains subfolders to support devices with different size screen resolutions and densities values – Contains string constants for the application AndroidManifest – The manifest for the Android application includes the Intents for the Activities and any permissions needed by the application

ACTIVITIES AND INTENTS An Activity is a window that contains the user interface An application can have zero or more activities In Android, you navigate between Activities through what is known as an intent Intents enable different activities from different applications to work together

DIALOG WINDOWS o Dialog windows are used to display information and sometimes to get confirmation from the user o Common Dialog Windows consist of: o Toast o A message that pops up on the bottom of the user screen for a short period of time o Alert Dialog Window o Displays choices to the user and waits for a response o Progress Dialog Window o Useful for displaying the progress of a process

TOAST DIALOG A toast provides simple feedback in a small popup Toasts take 3 parameters 1)Application Context 2)Text Message 3)Duration OR

ALERT DIALOG Alert Dialog gets a confirmation from the user Code to handle the following events Positive: Typically OK Negative: Typically Cancel MultiChoice: When the user selects from a list

PROGRESS DIALOG

INTENTS o In Android, you navigate between activities through what is known as an intent o Results can be returned from an Intent o Data can also be passed using Intent Object o Built-in applications can be called using Intents o Web Browser o Phone Dialer o Contacts o Map o Etc.

WEB BROWSER & PHONE INTENT

NOTIFICATIONS A notification is a message displayed to the user outside of the applications UI To see the details of the notification, the user opens the notification drawer This is the old way of calling notifications but still works…

NOTIFICATIONS o Activity to receive the notification is just a single TextView

BREAK

RECAP Installing and Configuring the IDE Java (JDK) Eclipse Plug-Ins SDKs APIs The UI screen for Android Applications are called Activities Intents are used to link Activities There are built-In Intents (Browser, Contacts, Etc.) Dialog Windows Toasts Alerts Progress Notifications

USER INTERFACE (ACTIVITIES) An Activity is a window that contains the user interface (Views and ViewGroups) o Views consist of o TextViews (labels) o TextEdits (text boxs) o Radio Buttons o Check Boxes o Date Pickers o Time Pickers o Etc.

USER INTERFACE (ACTIVITIES) ViewGroups are layouts used to arrange Views into proper location on the screen o Android supports the following ViewGroups Linear Layouts Absolute Layout Table Layout Relative Layout Frame Layout Scroll View o ViewGroups can be nested

VIEWGROUPS (LINEAR LAYOUT) o The Linear Layout Stacks Views on top of each other o Orientation can be Vertical (default) or Horizontal View Linear Layout View Linear Layout

VIEWGROUPS (LINEAR LAYOUT)

VIEWGROUPS (RELATIVE LAYOUT) o The Relative Layout arranges Views in relation to the parent or other Views Relative Layout View

VIEWGROUPS (RELATIVE LAYOUT)

VIEWGROUPS (SCROLLVIEW) o The ScrollView enables users to scroll through a list of Views that occupy more space than the physical display o The ScrollView can only have one child, typically a Linear Layout ScrollView Linear Layout View

VIEWGROUPS (SCROLLVIEW)

ANCHORING VIEWS

CUSTOM ORIENTATIONS SCREENS o A preferable alternate to anchoring is to create custom screens based on orientation o To support Landscape mode, create a new folder in the res folder named layout-land o Layouts contained in the layout folder defines the UI for portrait mode o Layouts contained in the layout-land folder defines the UI for landscape mode

CUSTOM LANDSCAPE UI

PERSISTING STATE INFORMATION o Changing screen orientation destroys the Activity and re-creates it o Current state of the Activity is lost o When an Activity is killed, itll fire the onPause and onSaveInstanceState events o You can implement the onPause event to save state information to database, internal or external storage Or o Implement the onSaveInstanceState event and save the state using Bundle object o After the activity is re-recreated retrieve and reset the state in the onRestoreInstanceState event

PERSISTING STATE INFORMATION Flow: o Orientation Changes o Activity is Killed o Activity is re-created o State information McBean is lost

ACTIVITY LIFE CYCLE o These are the major events triggered during the life cycle of an Activity Additionally o onRestoreInstanceState occurs after onStart o onSaveInstanceState occurs after onPause

PERSISTING STATE INFORMATION

REGISTERING EVENTS FOR VIEWS o Views can fire events when user interacts with them o The appropriate events need to be explicitly registered o Events can be registered using an inner class or an anonymous class

REGISTERING EVENTS FOR VIEWS o Using the AnchorView as an example o The buttons are linked to the UI buttons using findViewById o The setOnClickListener gives the buttons ears to listen for the click event to be triggered by the user o btn1…btn4 call an anonymous class btnListener o Btn5 calls an inner class

BASIC VIEWS Views commonly used are: TextView – Display Information EditText – Allows user to key in Information CheckBox – Turn on and off RadioButtons – Select one in a list ToggleButton – Turn on and off

SIMPLE LIST VIEW o The ListView displays a long list of items in an Activity o No UI Layout Required o Presentation is dictated by the second parameter of the setListAdapter

CUSTOM LIST VIEW o Colleges array was moved to strings.xml file and now called as a resource

SPINNER VIEW Similar to the ListView except is used when other Views will be displayed on the UI