purdue pride 4.14.10 joe gutierrez tung ho janam jhaveri 4/14/2010purdue pride1
TRANSCRIPT
Purdue Pride 1
Purdue Pride4.14.10
Joe GutierrezTung Ho
Janam Jhaveri
4/14/2010
Purdue Pride 2
Timeline
•7 weeks
•March 10th: Widget, RSS tutorials
•March 24th: RSS Feed
•April 7th: SQL Lite Database (currently working on)
•April 21st: Widget
•April 28th: Work off any loose ends
4/14/2010
Purdue Pride 3
Milestones
•Website with RSS feed is set up (3.3.10)
•Basic widget displays hard-coded text (3.10.10)
•Successfully store and recall data from SQL Lite with an application (3.24.10) (Need to
add fixes)
•Successfully retrieve and display RSS feed onto view (4.1.10)
•RSS Application fully working (no database) (4.14.10)
4/14/2010
Purdue Pride 4
Demo
4/14/2010
http://www.purdue.edu/newsroom/rss/engineering.xml
Purdue Pride 5
Database
• database works (kinda)• to access database in shell
go to androids tool directory cd data/data cd purdue.pride (project name) cd databases sqlite3 pride (pride is database’s name) .tables
• feed is stored, but messed up
title and descriptions are being appended to each other
Changed code in RSSHandler => should work now
• need to rewrite database class used code from online tutorial, however it’s an older API can’t detect when to create new table in database DbAdapter class
public class PrideDB {
private static final String FEEDS_TABLE = "feeds"; private static final String DATABASE_NAME = "pride";
private static SQLiteDatabase db; public PrideDB(Context ctx) {
db = ctx.openOrCreateDatabase(DATABASE_NAME, 0, null); //API change
}
4/14/2010
Purdue Pride 6
Next Task
4/14/2010
April 21th: Have Database working
April 28th: RSS Feed interacting with Database