Upload
thanos
View
38
Download
0
Embed Size (px)
DESCRIPTION
Purdue Pride 4.30.10 Joe Gutierrez Tung Ho Janam Jhaveri. Goals for the semester. Learn Java Learn Android API Develop a widget that would pull RSS feed from a website and display one article. History of Progress. Websit e with RSS feed is set up (3.3.10) - PowerPoint PPT Presentation
Citation preview
Purdue Pride 1
Purdue Pride4.30.10
Joe GutierrezTung Ho
Janam Jhaveri
4/30/2010
Purdue Pride 2
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 3
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 4
Challenges
4/30/2010
•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 missingSolution: 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 versionSolution: 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
Purdue Pride 5
Original vs Current
4/30/2010
Open/UpdateWidget
Display Contents
Pull Contents from RSS
feed
Store Contents to
SQL Lite
Organize/Format Contents
Access content
Original Idea
Current Status Open/Update Widget
Display Contents
Pull Contents from RSS
feed
Choose Random article
Purdue Pride 6
Original Widget Flow Chart
4/30/2010
Open/UpdateWidget
Display Contents
Pull Contents from RSS
feed
Store Contents to
SQL Lite
Organize/Format Contents
Access content
Original Idea
Original CodeWidget.java
Item.javaRSSHandler.java
DB.java
Feed.java
Purdue Pride 7
Current Widget Flow Chart
4/30/2010
Current Idea
Current CodeWidget.java Item.javaRSSHandler.java
Open/Update Widget
Display Contents
Pull Contents from RSS
feed
Choose Random article
DB.java Feed.java
Purdue Pride 8
Widget Transition from App
4/30/2010
Application Widget
Purdue Pride 9
RSS Feed
4/30/2010
https://engineering.purdue.edu/Engr/AboutUs/News/Features/feed.rss
Purdue Pride 10
Different Widget Instances
4/30/2010
Purdue Pride 11
Widget Demo
4/30/2010
Purdue Pride 12
Future Development
4/30/2010
Manually input specific
RSS feed
Specify frequency of auto update
Modify the layout of widget
Manually refresh to new
article
Default List of Purdue RSS
Feeds
Keyword preference
Purdue Pride 13
Resources
4/30/2010
Hello Widget tutorialhttp://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 Tutorialhttps://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 Tutorialhttp://www.helloandroid.com/tutorials/newsdroid-rss-reader