CSAS Android WorkshopThe class meets MWF 12:00pm - 1:45pm This "class" consists of a series of workshops to get a working knowlege of programming for the Android OS. The following list contains a few highlights and tidbits of information.
|
General Information
Downloads
References Assignments
|
In this project we will introduce "fragments". Fragments are an essential ingredient of all Android activities since "Honeycomb". In fact, every app should be written using fragments, not activities, even if the app does not utillize any of the advanced features of fragments. And you can utilize an external library to enable fragments for all Android versions above Foyo (2.2), so fragments are backwards compati[lClick here to download the Eclipse project file that sets up the project. Import it into Eclipse.
7. Fifth Project: Async Data Loading with JSON formatting: an SHU News Reader First, we added "saving and loading" of data in JSON format to our CriminalIntent project. Check out the code contained in the following archive:
Seond, we modify our previous iBookmark project so that it loads data asynchronously from a public web document. Check, in particular, the class BookmarkLoader, which includes a lot of comments explaining how this class works.
For a complete project that downloads Seton Hall news and events in JSON format and shows that info in a kind of newsfeed reader, click here ... soon :-) 8. Gettting data from a JSON News Feed coming up soon 9. Getting data from an XML Feed Create a new project, create two classes named "MainActivity" and "XMLData". Copy the code, compile, and run. Then take the code in the true parser and replace your XML parser by that code. For more instructions, please download the complete project file, unzip, import into Eclipse, and run it. Each class has extensive comments, so you should be able to figure out how to use the class. Note that it easy to modify this project to read most XML files that contain 'records' of objects and the code should have sufficient comments to make sense of it pretty easilty.
|
|
(c) bgw