In androidmanifest. XML, We need to declare permissions for operations required by some software,
For example, if our software can send text messages, we need to make the following statement in androidmanifest. xml:
<? XML version = "1.0" encoding = "UTF-8"?>
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Package = "cn.com. fetion. Android"
Android: versioncode = "1"
Android: versionname = "1.0.0">
<Application Android: icon = "@ drawable/icon" Android: Label = "@ string/app_name">
<Activity Android: Name = ". welcomactivity"
Android: Label = "@ string/app_name">
<Intent-filter>
<Action Android: Name = "android. Intent. Action. Main"/>
<Category Android: Name = "android. Intent. Category. launcher"/>
</Intent-filter>
</Activity>
</Application>
<Uses-Permission Android: Name = "android. Permission. send_sms"> </uses-Permission>
</Manifest>
Note the boldCodeIt means that the software has the function of sending text messages. If you do not declare this permission to call this function, an exception will occur,
The system does not report any specific exceptions.
What permissions do Android have to declare?
We can find the answer in the documentation provided by Android
For more information, see
Android-sdk-windows-1.6_r1 \ docs \ reference \ Android \ manifest.permission.html
The manifest. Permission class defines 106 permissions for Android.
Http://blog.csdn.net/kome2000/archive/2009/10/23/4716891.aspx for details