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