The reason why the dynamic request permission is not supported in Android _android

Source: Internet
Author: User

As an Android developer, adding permissions to a program is a normal thing to do, and it must be done in mainifest, writing like this <uses-permission android:name= " Android.permission.INTERNET "/> Information. Completed in the form of a static application. So here I want to throw a question that the Android platform supports dynamic application permissions.

I believe many people answer is not supported, of course, the answer is right, but why not support it, know that it is more to know why. It is still quite necessary to understand why.

Reasons List

Android does not provide a mechanism for dynamically requesting permissions.

The current static application can put the security of the permissions on the program before the installation of a prompt to fix, and if the dynamic application, it will occasionally pop-up application box. Such a user experience is too bad.

Some permission applications need to rely on the device's feature (feature), the use of static applications can clearly know the characteristics of the device needs, Google Play determines whether the device is displayed and installed based on the characteristics of the program's requirements and the characteristics of the target device. Dynamic applications cannot clearly know the feature required. May cause applications that can be displayed that cannot be installed.

May pose a security risk problem.

Extended Reading

Http://stackoverflow.com/questions/4838779/get-android-permission-dynamiclly
Http://stackoverflow.com/questions/7517171/is-there-any-way-to-ask-permission-programmatically

Related Article

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.