A (175)

(Tuis.) #1
CHAPTER 14: Android Content Providers: Providing Data to Applications 527

Adding Permissions in the AndroidManifest


Click on your HelloUniverse Manifest tab, shown in the middle of the five tabs you have open so far
in Figure 14-14.



  1. In the central editing area of Eclipse, click on the Permissions tab, this time
    at the bottom of the editing pane, to switch the editing pane into an Android
    Manifest Permissions Visual Editor mode. Click the Add button shown in
    Figure 14-14. Note that if you mouse over UI elements, you will get pop-up
    explanations of what they do.


Figure 14-15. Select the Uses Permission option from the Add Permissions dialog


Figure 14-14. Click the HelloUniverse Manifest tab (top) and then the Permissions tab (bottom), and then click the Add button



  1. Clicking the Add button will open this Add Permissions dialog, shown in
    Figure 14-15.

  2. Select the Uses Permission tag, and click the OK button. This will add
    the tag to your XML definition, and will insert it in the
    Permissions area of the visual editor, as can be seen in Figure 14-16. Select
    a READ_CONTACTS database permission constant from the permission
    type Name drop-down menu.

Free download pdf