Introduction to Apps Development for the iPhone and the Android OS Art Gittleman Professor, Computer Science Calif State Univ Long Beach Feb 28, 2011.

Slides:



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

View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
ANDROID DEVELOPMENT KELLY MCBEAN. DEVELOPMENT ENVIRONMENT OVERVIEW Eclipse Standard IDE for Developing Android Applications Install: 1.Java (JDK) – Since.
David Angulo Rubio ANDROID OS Open Software Platform for Mobile Devices.
Programming Mobile Applications with Android
INTRO TO MOBILE APP DEVELOPMENT CMSC 150: Lecture 34.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Smartphone Apps Development Team Weiqing Li Lijun Zhu Man Li.
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.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
Anatomy of an iPhone Application Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
View Controllers (second part) Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
Android and Project Structure. Android Android OS – Built on Linux Kernel – Phones – Netbooks – Readers – Other???
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
Android Application Development with Java UPenn CS4HS 2011 Chris Murphy
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
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.
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 Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
Mobile Application Development with ANDROID Tejas Lagvankar UMBC 29 April 2009.
About me Yichuan Wang Android Basics Credit goes to Google and UMBC.
Copyright ©: SAMSUNG & Samsung Hope for Youth. All rights reserved Tutorials Software: Building apps Suitable for: Advanced.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
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.
FINAL PRESENTATION SYDNEY TOUR. Divya Nalla Raja Kandasamy RajaShekar Donti Ren Zhu Sadah Omar Sulaiman
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Chapter 2: Simplify! The Android User Interface
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Tip Calculator App Building an Android App with Java © by Pearson Education, Inc. All Rights Reserved.
DUE Hello World on the Android Platform.
© 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.
Chapter 2 The Android User Interface. Objectives  In this chapter, you learn to:  Develop a user interface using the TextView, ImageView, and Button.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Folio3 IPhone Training Session 1 Presenter: Imam Raza.
Mobile Device Programming
Android Boot Camp for Developers Using Java, 3E
Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android.
Configuring Android Development Environment Nilesh Singh.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
IOS with Swift Hello world app.
Using Xcode A Beginner’s Tutorial Erin Green. This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We.
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 Hello World 1. Click on Start and type eclipse into the textbox 2.
View Controllers Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
First Venture into the Android World Chapter 1 Part 2.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
© 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.
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,
UNIT-V APPLICATION DEVELOPMENT Three tier architecture - Model View Controller Architecture - Memory Management –Information Access Devices – PDAs and.
WebViews UIWebView. Controller Architecture UITabBarController Controls the first view that the user sees The view controller class (and xib) that manages.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Iphone Online Training AcuteSoft: India: , Land Line: +91 (0) USA: , UK : +44.
Introduction to Apps Development for the iPhone and the Android OS
Java FX: Scene Builder.
Android.
Development-Introduction
CA16R405 - Mobile Application Development (Theory)
CS323 Android Getting Started
Application Development A Tutorial Driven Course
Korea Software HRD Center
Presentation transcript:

Introduction to Apps Development for the iPhone and the Android OS Art Gittleman Professor, Computer Science Calif State Univ Long Beach Feb 28, 2011

Android Need Java 5.0+ Easiest to use Eclipse Download SDK starter pack from developer.android.com and invoke SDK setup program Install Eclipse plugin Help, Install New Software Android Development Tools Tell Eclipse where Android is located Windows, Preferences, Android

Hello Android Eclipse File, New, Project, Android, Android Project Create Android Virtual Device (AVD) Window, Android SDK, AVD Manager Run (on emulator) To run on phone enable USB debugging Settings, Applications, USB Debugging Install USB driver (Windows only)

Android App Framework Created by default src -- Hello.java -- main Activity res, drawable -- icon.png – app’s icon res, values -- strings.xml – constants res, layout – main.xml -- screen layout AndroidManifest.xml – table of contents gen – R.java – references, never touch it

Rock Paper Scissors Two activities – Rsp and Res Layout – TextView over nested layout Hook up buttons Use an Intent to go from one to the other Result activity – text, text, button Result text enhanced Can configure layouts by dragging widgets and entering properties

Ball Game Touch ball to score, after 10 ball shrinks and goes faster Easy, medium, hard choices Uses a Java view not XML Uses the onTouchEvent handler Use the onDraw method to draw on a canvas

OpenGL (from Hello Android) Rotating cube Uses OpenGL ES (embedded systems) Draws cube from vertices Uses GLRenderer onSurfaceCreated -- set properties onSurfaceChanged – update view onDrawFrame – draw the scene

Browser View (from Hello Android) An EditText and Button above WebView WebView uses loadUrl method to display web page Documentation – developer.android.com

iPhone Needs Intel Mac, OS X Download SDK and register (free) developer.apple.com/iphone $99 to deploy to iPhone or iPod Uses Objective-C Launch XCode Examples from iPhone SDK Development

Hello iPhone File, New Project in XCode Choose View-based Application HelloViewController class and HelloViewController.xib (nib), freeze-dried GUI HelloAppDelegate manages application Use Interface Builder to add Label and configure color and size in Attributes inspector

Hello User Allow user to enter a name IBOutlet – reference from code to nib object, e.g. label, text field IBAction – method nib’s objects can call, e.g. button press handler In Interface Builder, connect outlets to code, connect action Touch Up Inside event to handler method, sayHello Implement the sayHello handler method

Movie - MVC Create Movie class (the model) Labels with movie info, Edit button MovieEditorViewController for edit view with Done button to return to main screen Send message in Edit button to start movie controller Send message in Done button to return to MovieViewController

Movie Table UITableView, UITableViewDataSource protocol provides number of rows, add, delete, etc., UITableViewDelegate to handle tapping to select a row Uses Navigation-based Application UINavigationController UINavigationBar (with Edit and Add buttons) RootViewContoller (with UITableView) UINavigationItem

Movie Table -2 UINavigationController maintains navigation state as a stack of view controllers. Uses an array to hold table data. Initial array hard-coded. Changes are not saved.

Conference -- Core Data Built on SQLite Managed Object Context – row data turned into objects Managed Object Model – like schema Persistence Store Coordinator – connects to the database Double-click on Conference.xcdatamodel to get screen to configure tables

Core Data - 2 Create Managed Object Class to represent the model Conference has tracks with trackAbstract, name, sessions Edit and Add buttons configured in code in viewDidLoad method rather than in Interface Builder NSFetchedResultsController – adaptor between CoreData and table view

References Hello Android, Third Edition, Ed Burnette, Pragmatic Programmers, Introduction to Android development Using Eclipse and Android widgets ibm.com/developerWorks iPhone SDK Development, Bill Dudney and Chris Adamson, Pragmatic Programmers, Beginning iPhone Games Development, PJ Cabrera, et al, Apress, Developing Apps for iOS (video and pdf) from Stanford University