The permission of Android development

Source: Internet
Author: User

Permission,android permission System.

Basically, it's all done in the Manifest.xml file.

1. Permission to use the application

Request permission to use tag:<uses-permission/>

For example, request to use network permissions:<uses-permission android:name= "Android.permission.INTERNET"/>

2. Affirms a right

declaring permission to use Tags:<permission ></permission>

Then different components use this permission when they need to apply, still use:<uses-permission/>

Like what:

I have declared a privilege in an app:<permission android:name= "Com.exer.componentpermission.PERIMISSION_MYATY" ></ Permission>

I use this permission in another app and need to apply:<uses-permission android:name= "Com.exer.componentpermission.PERIMISSION_MYATY"/>

The permission of Android development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.