---
description: This page covers the description of the required permissions
---

# Permissions

If you want to read a document from the gallery, you need to make sure that your application has permissions to read from external storage. You can check it using the following code:

```java
// checking for image browsing permissions
if (ContextCompat.checkSelfPermission(MainActivity.this,
    Manifest.permission.READ_EXTERNAL_STORAGE)
    != PackageManager.PERMISSION_GRANTED) {

    ActivityCompat.requestPermissions(MainActivity.this,
            new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},
            PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
} else {
    // start image browsing
    createImageBrowsingRequest();
}
```
