CS 491 Lecture 11 – Task Navigation
Agenda what ?s git client available navigating between Activities using intents sharing data between Android tasks navigating between tasks using UINavigationController sharing data between iOS tasks TODO Read up on UINavigationController at http://www.appcoda.com/use-storyboards-to-build-navigation-controller-and-table-view and https://developer.apple.com/library/ios/documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html. 1/4 sheet. Sharing Data Between Activities If the data is a message from one Activity to another, use Intent extras. On the […]
CS 245 Lecture 11 – Set and Generics
Agenda what ?s what does this do? writing a set data type generalizing code without a supertype What Does This Do? Code VerdeganTest.java Set.java Haiku
CS 245 Lecture 10 – Abstract Classes
Agenda what ?s the inheritance spectrum abstract classes writing a travel diary with Google Earth TODO Read on Generics in chapter 12 through section 12.3 in Core Java. 1/4 sheet. Travel Diary Code TravelDiary.java Placemark.java LatLon.java PinPlacemark.java LinePlacemark.java RegionPlacemark.java Main.java Haiku
CS 245 Lecture 9 – Complexity
Agenda what ?s Hunting Dragons with Binary Search finish binary search What If? comparing algorithms the tradeoff: ease of development or performance I’m More Difficult Than You terrain generation What If? I’m More Difficult Than You Code Spellchecker.java Haiku
CS 491 Lecture 9 – On Today and JSON
Agenda what ?s tracking memories on this day in history database getting and putting memories through $_REQUEST exchanging data with JSON an Android client Code schema.sql put.php get.php edit.xml activity_main.xml Memory.java MainActivity.java Haiku
CS 245 Lecture 8 – Brute Force and Spellchecking
Agenda what ?s a little Timer class brute force password cracking with recursion spellchecking with recursion linear search binary search TODO Work on homework 1, part 1. Code Sketcher.java SketcherWidget.java PoorMansTimer.java BruteForcer.java Spellchecker.java Haiku
CS 245 Lecture 7 – Custom Drawing
Agenda Design This inheriting from JPanel to do custom drawing Sketcher Program This recursion Design This Program This Recipe for Custom Drawing Extend JPanel and override paintComponent: Code Person.java GoodPerson.java Sketcher.java SketcherWidget.java StringUtilities.java Haiku
CS 491 Lecture 7 – List Views
Agenda single letter domain names list views two letter domain name app in iOS and Android TODO Read up on Android’s Intent mechanism at http://www.vogella.com/articles/AndroidIntent/article.html. 1/4 sheet. Mobile User Interface Code ViewController.m activity_main.xml MainActivity.java Haiku
CS 491 Lecture 6 – Group Time
Agenda group time TODO Skim Apple’s table view documentation. Skim a tutorial on Android’s ListView. 1/4 sheet. Hash Out Does someone want to be the iOS person? The Android person? The database person? The server person? The manager? Do we want to share roles? How can we ensure everyone knows what’s going on? What project […]
CS 245 Lecture 6 – Inheritance
Agenda reusing more than signatures ToasterPlus a Raffle Drawer TODO Read chapter 5 in Core Java, through section 5.1. 1/4 sheet. Inheritance Interface inheritance: reuse method signatures so that generalized code can operate on our classes. This lets old code call new code. Implementation inheritance: reuse method signatures and bodies so that we can extend […]