Sunday, May 13, 2012

Assignment five

For this assignment we are going to create a little promotional app for a coffee shop. The assignment will cover using multiple activities and reading text and XML files.

The first activity will be an introduction, it might have a picture or a logo. How you design it is up to you. One thing it should have is two buttons, one that opens an activity that describes the coffee shop. This description should be in the form of a text file. This file should be stored in a folder under res called raw. You can use your imagination for the content of the file.

The other activity should contain a list of coffee products, sizes and products. These should be read from a file called coffee.xml stored in a folder under res called xml.
The XML file should have a structure like this:


<?xml version="1.0" encoding="utf-8"?>
<coffees>
<coffee
name="expresso"
size="2 ounces"
Price="1.50"/>


</coffees>



You can add as many drinks as you like, but should have at least five.

A sample resembling this will be posted soon.



No comments:

Post a Comment