Monday, 8 January 2018

Run time permission in android (Dexter)

Here, we are going to simplify the process of adding the run time permissions using Dexter library. Using this library, the permissions can be implemented in seconds.

Requesting Single Permission

To request a single permission, you can use withPermission() method by passing the required permission. You also need a PermissionListener callback to receive the state of the permission.

> onPermissionGranted() will be called once the permission is granted.

> onPermissionDenied() will be called when the permission is denied. Here you can check whether the permission is permanently denied by using response.isPermanentlyDenied() condition.

Set up android project with Open CV

Open CV is an open sourced computer vision library. It is a machine learning software library used for image processing and...