Android Development

Jarrell Waggoner

malloc47.com

Resources

App Inventor

App Inventor

http://appinventor.mit.edu

Android vs. IOS

Companies

Apple vs. Google

Language

Java Objective-C

Price

$25 one-time vs. $99 annually

75% profits

Platform

Any platform vs. Mac Only

Market Share

Market Share

Details

Comparison

About Android

Android
  • First release: 2008
  • Based on the Linux kernel
  • Dalvik instead of JVM
  • Over 200,000 apps with over 3 billions downloads

Versions

  • Cupcake
  • Donut
  • Eclair
  • Froyo
  • Gingerbread
  • Honeycomb
  • Ice Cream Sandwich
  • Jelly Bean

Architecture

Building an App

Cat

Requirements

Development Overview

Organization

  • Intent
    • Activity
      • ViewGroup
        • View

Intents


Sends messages between activities, and selects the appropriate activity

Activity

View and ViewGroup

View

Interactive controls that appear in an app


Types of Views:

  • TextView
  • EditText
  • Button
  • CheckBox
  • RadioButton

ViewGroup

Collection of Views, which handle the layout of controls in an activity


Types of ViewGroups:

  • AbsoluteLayout
  • FrameLayout
  • LinearLayout
  • RelativeLayout
  • TableLayout

View and ViewGroup

Files

  • AndroidManifest.xml: Registers Activities
  • BuildConfig.java: Global variables which control how the project is built
  • R.java: Maps unique numbers to named constants
  • MainActivity.java: Code for activity
    (name varies)
  • activity_main.xml: xml description of layout
    (name varies)

Hands-On

Cat