Indonesian English French German Spain Italian Russian Portuguese Japanese Dutch Arabic Chinese Simplified

Tutorial: Adding permissions

Monday, September 20, 2010

An Android application that will be used to access the protected features required permissions. It is very necessary to create applications that use intent. Was added to the file permissions AndroidManifest.xml.
As an example of an application that will be used to receive the SMS then need to add tags as in Source 1.

<manifest xmlns:android=""
    package="" >
    <uses-permission android:name="android.permission.RECEIVE_SMS" />

Source 1. Receive SMS AndroidManifest.xml use permissions

In addition to adding the files directly, if you use the Eclipse can also be added in the following manner:
• Select the folder in accordance AndroidManifest.xml Figure 1.

Figure 1. The composition of the folders on the Package Explorer

• Then select the Permissions and then click Add to add the Uses Permissions can be seen in Figure 2.

Figure 2. Android Manifest Permissions
• After that, enter the name of the uses permissions. In the picture below will be added to the uses permissions to receive SMS.

Figure 3. Uses permissions to receive SMS
In this way it is on file AndroidManifest.xml will happen automatically generate the desired permissions.

0 comment:

Post a Comment

Theme by New wp themes | Bloggerized by Dhampire