ActivityCompatést
ActivityCompat is a class in the Android framework that provides a simple way to check and request permissions at runtime. It is part of the Android Support Library, which allows developers to use newer Android features on older devices. The class is primarily used to handle permissions that are considered dangerous, such as accessing the camera, reading contacts, or accessing the internet. These permissions are defined in the AndroidManifest.xml file and are granted by the user at runtime.
The ActivityCompat class provides methods to check if a permission has been granted, request permissions, and
ActivityCompat is an essential tool for developers who want to create apps that are compatible with the