Android Programming Tutorials

(Romina) #1

TUTORIAL 37


Photographic Memory


One logical thing to add to the restaurant information in LunchList would


be photos: the exterior of the restaurant, favorite dishes, wait staff to avoid,


etc. This tutorial will bring us partway there, by allowing users to take a


picture while in LunchList.


Step-By-Step Instructions.........................................................................


First, you need to have completed the previous tutorial. If you are


beginning the tutorials here, or if you wish to not use your existing work,


you can download a ZIP file with all of the tutorial results, and you can copy


the 36-PermsPhone edition of LunchList to use as a starting point.


Step #1: Adjust the Manifest..............................................................


To date, we have been able to skate by without a number of elements in our


manifest that many applications need. At this point, though, we need to


make some adjustments. So, make your LunchList/AndroidManifest.xml file


look like the following:


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="apt.tutorial"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="3"

349
Free download pdf