Purdue_Pride_Final_4.30.10x

Download Report

Transcript Purdue_Pride_Final_4.30.10x

Purdue Pride
4.30.10
Joe Gutierrez
Tung Ho
Janam Jhaveri
4/30/2010
Purdue Pride
1
Goals for the semester
1. Learn Java
2. Learn Android API
3. Develop a widget that would pull RSS feed from a website and display one article
4/30/2010
Purdue Pride
2
History of Progress
1. Website with RSS feed is set up (3.3.10)
2. Basic widget displays hard-coded text (3.10.10)
3. Successfully store and recall data from SQL Lite with an application (3.24.10)
(Need to add fixes)
4. Successfully retrieve and display RSS feed onto view (4.1.10)
5. RSS Application fully working (no database) (4.14.10)
6. RSS Weather Widget fully working (no database) (4.21.10)
7. RSS Reader Widget fully working (no database) (4.30.10)
4/30/2010
Purdue Pride
3
Challenges
•Difficulty accessing the internet
Solution: Add the following line of code to the manifest.xml file:
<manifest xlmns:android...> ...
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
• Proper documentation and extensive tutorials was missing
Solution: A lot of trial and error. Eventually figured out how code worked
• Database presented challenges . It worked, but we have difficulty having it work together with the rest of
the code.
Solution: Removed database and displayed RSS content directly from website
• Some tutorials were for older API version
Solution: Seeked help from sites and forums
•Works 50% of the time
Solution: Next semester
•Memory Leak test?
Performance => how long before battery drains
Solution: next semester
4/30/2010
Purdue Pride
4
Original vs Current
Original Idea
Pull Contents
from RSS
feed
Open/Update
Widget
Current Status
4/30/2010
Open/Update
Widget
Purdue Pride
Store
Contents to
SQL Lite
Organize/Format
Contents
Access content
Pull Contents
from RSS
feed
Choose
Random
article
Display
Contents
Display
Contents
5
Original Widget Flow Chart
Original Idea
Pull Contents
from RSS
feed
Open/Update
Widget
Original Code
Widget.java
RSSHandler.java
4/30/2010
Purdue Pride
Store
Contents to
SQL Lite
Organize/Format
Contents
Access content
Display
Contents
DB.java
Feed.java
Item.java
6
Current Widget Flow Chart
Current Idea
Open/Update
Widget
Pull Contents
from RSS
feed
Choose
Random
article
Display
Contents
Current Code
Widget.java
DB.java
4/30/2010
Purdue Pride
RSSHandler.java
Item.java
Feed.java
7
Widget Transition from App
Application
4/30/2010
Widget
Purdue Pride
8
RSS Feed
https://engineering.purdue.edu/Engr/AboutUs/News/Features/feed.rss
4/30/2010
Purdue Pride
9
Different Widget Instances
4/30/2010
Purdue Pride
10
Widget Demo
4/30/2010
Purdue Pride
11
Future Development
Manually
input specific
RSS feed
Manually
refresh to new
article
Modify the
layout of
widget
Specify
frequency of
auto update
Keyword
preference
4/30/2010
Default List of
Purdue RSS
Feeds
Purdue Pride
12
Resources
Hello Widget tutorial
http://nm-blog.sanid.com/wp-content/uploads/2009/07/android_howto-hellowidget.pdf
Android with MySQL tutorial:
http://groups.google.com/group/android-beginners/browse_thread/thread/878e5ff197cf7f71?pli=1
PHP with MySQL tutorial:
http://www.w3schools.com/php/php_mysql_intro.asp
RSS Tutorial
https://www6.software.ibm.com/developerworks/education/x-androidrss/
http://www.Anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html
RSS and databases Tutorial
http://www.helloandroid.com/tutorials/newsdroid-rss-reader
4/30/2010
Purdue Pride
13