Android 6 Permission access to internet

前端 未结 2 1242
甜味超标
甜味超标 2020-12-21 07:10

month ago I wrote my first app and I put permission to write on sd-card, when activity start i request permission i do:

if (permission != PackageManager.PERM         


        
2条回答
  •  余生分开走
    2020-12-21 07:40

    Please check link1, link2

    It is still mandatory for apps that will access the Internet. If a developer were to publish an app without defining it in the Android manifest, an exception will be thrown the first time a connection attempt is made, and the app will possibly crash. This is no different than before.

    Limited Permissions Granted at Install Time: When the user installs or updates the app, the system grants the app all permissions that the app requests that fall under PROTECTION_NORMAL. For example, alarm clock and internet permissions fall under PROTECTION_NORMAL, so they are automatically granted at install time.

    Thanks

提交回复
热议问题