To continue with the food and eating theme, let's build a simple application that allows us to order various types of fast food, and get it delivered! The user will first select where they want to order from, and then select the various foodstuffs that they want to eat.
androidproject using the Android command-line tool:
android create project -n DeliveryDroid -p DeliveryDroid -k com.packtpub.deliverydroid -a SelectRestaurantActivity -t 3
/res/values/strings.xmlfile in your favorite editor or IDE.
<string-array name="restaurants"> <item>The Burger Place</item> <item>Mick's Pizza</item> ...