Asking Permission to Place a Call
At this point, you can recompile and reinstall the application. When you
first run it, there will be a tiny pause as the database is updated. After that
point, you can use the new field to add phone numbers to whichever
restaurants you want:
Figure 60. The new DetailForm layout
Step #5: Ask for Permission to Make Calls
Then, we can update AndroidManifest.xml to put in a permission request to
be able to place phone calls:

package="apt.tutorial"
android:versionCode="1"
android:versionName="1.0">


android:label="@string/app_name">


343
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
Précédent

- 376/447

Suivant