Yeah, so in our application like when we access some of the hardwares in our mobile applications such as camera, we can take an example of camera. So we have a use case like the user can scan a vehicle identification number from the windshield in the vehicle. So for that, we need to access the mobile app camera hardware. So for this, first thing we'll consider is like we have to declare the camera permission in app manifest file. And then we need to have a runtime permission since in latest Android, the permissions won't be default given. So while invoking the camera, we need to present a runtime permission for the user. So we will be the permission dialog will be having accept and deny buttons. So only we'll get a callback, whatever the user selects either an accept or deny. So based on that, we can proceed to open the camera or if they are denying, we can show an error banner or an error dialog like we need the permission to proceed. So basically like we'll be having the runtime permissions and we have to declare the permissions in manifest. Similarly, if we need to access our Bluetooth from the mobile hardware. So similarly, we need to add those permissions in manifest file and we can register a broadcast receiver so that whenever there is a change in Bluetooth status, it will be notified to the mobile app.
