Android Programming

Streaming Video Lectures On-Demand

 
Colin Archibald, Ph.D.
Valencia College
Orlando, FL 32811


Pre-requisite:  Java Programming

These videos have moved to YouTube. 
Here is a link to the PlayList:

https://www.youtube.com/playlist?list=PLExJ0mIfzKFw6nMo_LTlXR88XLQQxytl7




 

 

01 Getting Started

  • Android is the result of international cooperation among dozens of high tech companies to create a platform (some say operating system) to run on hand held devices.

  • Google owns Android
  • Oracle owns Java

  • 200,000 Android handsets activated each day.

  • Easy to become an independent app developer.

  • Set up your machine for creating Android Apps!
    Appendix 1 (Below)  - Go do that now.


02 Exploring Hello Android


  • AVD Android Virtual Devices.

  • Packages com.valenciaprogrammers.myprojectname
  • Android Manifest.xml

  • Activity Stack - the back-stack.

  • MyApplication.apk - Android package

  • Activity... View ... Intent


03 Events and Activities


  • Create Activities and Views - Over here .. Over there

  • Create a simple intent to move from one Activity to another

  • Start to play with User Interface building (Very introductory)

  • Creating Resources - Colors and Strings

  • Creating an event handler for hearing a Button click

  • Gaining understanding / comfort with how apps are put together


04 Design an App


  • Design an app on paper - this is the thinking / planning stage

  • Who wants it?  Why? Do you want it? Where will you use it?  How will it change something in your life?

  • Be careful with "someone I know would want this"

  • Look through the Android Market

  • We design an application with a fairly simple GUI / database requirement



05 Create an Interface


  • Layout Managers, Widgets, Properties

  • Outline and Properites Windows

  • Trial and Error Learning

  • Data Collection

  • Continue thinking about your app




06 Get the data into the App


  • Get the data from the GUI, validate it, and put it in the App

  • Define a Custom Business Class - put the user data into an obejct

  • Create a subClass of Application

  • Share data among Activities, using the Application

  • Keep a list of Bugs and Features that need to be fixed later.  Watch out for Rat Holes

  • Continue thinking about your app




07 Add Dialogs to the App

 

  • Alert Dialogs - Pop-up information for the user

  • Using pre-defined Dialogs - the DatePicker Dialog

  • Debugging using the DDMS - Dalvik Debug Monitor Server

  •  Staying out of rat holes

  • Continue thinking about your app



08 Data Persistence - SQLite

 

  • SQLite is a small but powerful databse built into the API

  • Manipulation of Dates is tricky!

  • Create a Dabase table for the App
  • Add data records to the table - writing SQL statements and execute them

  • Make sure that the ArrayList is consistent with the data in the database.




09 Add a ListView

 

  • Create a second activity to display the bowling scores

  • Use an intent to switch to the new activity

  • Use a pre-defined view ListView to display the data (for now)

  • Retrieve the data from the database and put it into the ListView



10 Delete a Record

 

  • Some GUI improvements

  • Hearing events generated in the list view

  • Removing a record from the database

  • Update the data in the ArrayList, and refresh the calculated data




11 Finishing Touches

 

  • Orientation flipping

  • Using a Style

  • Testing on physical devices

  • User Testing

  • Devices:  physical screen sizes, pixel count, pixel density

  • Application and dialog icons




 



 



 


 
   




Appendix 1: Setting Up Your Machine For Android



  • Installing and setting up the Eclipse IDE

  • Installing the Android SDK

  • Download and Install the ADT Android Developpers' Tools

  • Add the Android Tools Path to the Environment path variable