Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Tutorial: Adding permissions


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="http://schemas.android.com/apk/res/android"
    package="com.android.app.myapp" >
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
</manifest>

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.


This post first appeared on I-learnedandroid, please read the originial post: here

Share the post

Tutorial: Adding permissions

×

Subscribe to I-learnedandroid

Get updates delivered right to your inbox!

Thank you for your subscription

×