BroadcastTest2 crashes in the first line of code in Chapter 5



 

Reason: No permissions declared in the configuration file, uses-permission.

In order to ensure the security of the application in the Android system, if the program needs to access some key information of the system, the permission must be declared in the configuration file, otherwise the program will crash directly.

Visit Manifest.permission on the official website to view all declarable permissions of the Android system.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327059142&siteId=291194637