130 likes | 268 Views
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)
E N D
Purdue Pride4.30.10Joe GutierrezTung HoJanam Jhaveri Purdue Pride
Goals for the semester • Learn Java • Learn Android API • Develop a widget that would pull RSS feed from a website and display one article Purdue Pride
History of Progress • 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) • RSS Weather Widget fully working (no database) (4.21.10) • RSS Reader Widget fully working (no database) (4.30.10) Purdue Pride
Challenges • Difficulty accessing the internet • Solution: Add the following line of code to the manifest.xml file: • <manifestxlmns:android...> ...<uses-permission android:name="android.permission.INTERNET"></uses-permission></manifest> • Proper documentation and extensive tutorialswasmissing • Solution: A lot of trial and error. Eventuallyfigured out how code worked • Databasepresented challenges . It worked, but we have difficultyhavingitworktogetherwith the rest of the code. • Solution: Removeddatabase and displayed RSS content directlyfromwebsite • Sometutorialswere for older API version • Solution: Seeked help from sites and forums • Works 50% of the time • Solution: Nextsemester • Memory Leaktest? • Performance => how long before battery drains • Solution: next semester Purdue Pride
Original vs Current Pull Contents from RSS feed Store Contents to SQL Lite Organize/Format Contents Original Idea Open/Update Widget Access content Display Contents Open/Update Widget Pull Contents from RSS feed Choose Random article Current Status Display Contents Purdue Pride
Original Widget Flow Chart Pull Contents from RSS feed Store Contents to SQL Lite Organize/Format Contents Original Idea Open/Update Widget Access content Display Contents Original Code Widget.java DB.java Item.java Feed.java RSSHandler.java Purdue Pride
Current Widget Flow Chart Open/Update Widget Pull Contents from RSS feed Choose Random article Display Contents Current Idea Current Code Widget.java RSSHandler.java Item.java DB.java Feed.java Purdue Pride
Widget Transition from App Application Widget Purdue Pride
RSS Feed https://engineering.purdue.edu/Engr/AboutUs/News/Features/feed.rss Purdue Pride
Different Widget Instances Purdue Pride
Widget Demo Purdue Pride
Future Development • Manually refresh to new article • Manually input specific RSS feed • Modify the layout of widget • Specify frequency of auto update • Keyword preference • Default List of Purdue RSS Feeds Purdue Pride
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 Tutorialhttp://www.helloandroid.com/tutorials/newsdroid-rss-reader Purdue Pride