Vous êtes sur la page 1sur 21

Mobile Development II

CPD-4493

Today
Course Outline Introduction to Android
Version History The Google Play Store (Android Market) The Android Software Development Kit (SDK) The Android Virtual Device (AVD)

Project Outline What to Aim For Homework: Online Exercise & Read Ahead

Important Policies
Late to Class
The door will close 5 minutes after class starts. If the door is closed, do not come in.

Assignment Submission
Assignments will be accepted until the end of class on Friday: 12:20pm. No late assignments will be accepted. No excuses.

Important Policies
Plagiarism
If you borrow code from the text, from the internet or from your friend: cite it. Borrowing is okay! You must cite your sources.

Cheating

Do not violate the Student Rights and Responsibilities Policy. It's your responsibility to know what your rights and responsibilities are.

http://nedroidcomics.tumblr.com

Course Outline and Syllabus


See on LION There will be a quiz on Outline, Syllabus and Department Policies Short Version:
This is an Android course. By the end of this course, you will have several dozen apps made. Each chapter 3-12 introduces a new App that we will make in-class. Your homework is to extend and re-purpose that app.

Introduction to Android
Chapter One

What is Android?!
Operating System for Mobile Devices
Demo of Android 4.4 on the Nexus 5

Free and Open Source Software (FOSS) Includes:


Basic Hardware Interface (Linux Kernel) Built-In Apps and Frameworks (Android) Downloadable Apps (Google Play Store)

Based on Java
Android apps run on the Dalvik Virtual Machine (VM), which is a version of Java VM.
Machine Code

Java Code

Compiler

Byte Code

VM

Development Environment (Eclipse and the ADT)

Running Environment (Phones and Tablets)

Android Versions and Naming


Android 1.6 (Donut) First Version on Phones Android 2.0-2.1 (Eclair) Android 2.2 (Froyo) Android 2.3 (Gingerbread) Android 3.0 (Honeycomb) Tablets-Only Android 4.0 (Ice Cream Sandwich) Android 4.1-4.3 (Jelly Bean) Android 4.4 (KitKat) Released Oct. 31, 2013

Targeting an API Level


When we create an app, we set its minimum required API level. Compare To: Windows XP vs Windows 7 For most modern applications, API Level 8 (Froyo, Android 2.2) is the best minimum.
Balance of good features vs good compatibility

Feature-Rich Updates
Each major version includes some cool features, for example:
Froyo Introduced WiFi Hotspots in May 2010 Gingerbread Introduced NFC in Dec. 2010 Honeycomb Re-Designed UI for Tablets in Feb. 2011 Ice Cream Sandwich Introduced Android Beam in Oct. 2011 Jelly Bean Introduced Google Now in July 2012 KitKat Optimized the System to run on low-spec hardware

Google Play Store


http://play.google.com is accessible from any browser or the Google Play app on a device. Only Google certified devices are allowed to access the Google Play store. So that's why your $30 tablet doesn't have the Google Play app. Google Play allows you to download apps in a consistent and safe environment.

Software Packages
When building a house, you don't start by chopping down trees and mining iron: you start with pre-built parts like boards and nails. When building software, we use pre-built parts called packages. For example:
android.view controls things like drag and drop android.location gives access to GPS data

Your textbook has a more detailed list.

Android SDK
The Android SDK and Developer Tools bundle is easily the best resource for developing apps. Recently, development has begun on Android Studio, another IDE based on IntelliJ IDEA. If you want to try it on your own time, go ahead.

Object-Oriented Programming
A Quick Refresher
Objects Data and Methods Bound Together Classes Blueprints to Build Objects Methods Programming Tasks Instantiation Building a New Object ReUse Don't Re-Invent the Wheel!!! Encapsulation Data for each Object is Separate Inheritance Design Classes From Other Classes

Test-Driving the Doodlz App


We need to build an Android Virtual Device. I just realized that you'll have to re-build your AVD every time you start your computer here at school. Good! It's good practice. We're going to:
Import the Project Configure an AVD Run the App on the Device

Question Period
Do you have any questions? Is this too easy? Am I going too fast? Is this too hard?

Project Introduction
We will do a one-hour class to introduce the project on February 28th. This will cover exact grading and provide planning materials for a sample project. Simple Truth:
Look at the regular homework you'll be doing in Chapter 12. Your project must be more complex.
Use a web service (public or home-made); or Be a non-trivial game.

Your project must either:

You will be graded on aesthetics: make it pretty!

Today
Course Outline Introduction to Android
Version History The Google Play Store (Android Market) The Android Software Development Kit (SDK) The Android Virtual Device (AVD)

Project Outline What to Aim For Homework: Online Exercise & Show Doodlz

Important Policies
Late to Class
The door will close 5 minutes after class starts. If the door is closed, do not come in.

Assignment Submission
Assignments will be accepted until the end of class on Friday: 12:20pm. No late assignments will be accepted. No excuses.

Whats Next?
Friday
Online Quiz Due Must Show Doodlz App Running in AVD

Next Week
Google Play Store and App Business Ideas

Vous aimerez peut-être aussi