---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/contentblocker/doc/en/examples/index.md
  - https://yandex.com/dev/contentblocker/doc/ru/examples/index.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/contentblocker/doc/en/llms.txt

# Example of configuring an extension

An example of configuring the [Adguard.ContentBlocker](https://play.google.com/apps/testing/com.adguard.android.contentblocker) extension is shown below:

1. The content provider section in the [AndroidManifest.xml](https://developer.android.com/guide/topics/manifest/manifest-intro.html) file:
    ```text
   <[provider](*provider)
       android:name="com.adguard.android.contentblocker.FiltersContentProvider"
       android:authorities="com.adguard.android.contentblocker.contentBlocker.contentProvider"
       android:exported="true">
   </provider>
    ```
    
1. The version of the Content Blocker API in the [AndroidManifest.xml](https://developer.android.com/guide/topics/manifest/manifest-intro.html) file:
    ```text
    <[meta-data](*meta-data) android:name="com.samsung.android.sbrowser.contentBlocker.interfaceVersion" android:value="API_1.0" />
    ```
    
1. [Intent](https://developer.android.com/reference/android/content/Intent.html#Intent) to update filters:
    ```
    Intent intent = new Intent();
        intent.setAction("com.samsung.android.sbrowser.contentBlocker.ACTION_UPDATE");
        intent.setData(Uri.parse("package:com.adguard.android.contentblocker"));
        sendBroadcast(intent);
    ```
    
1. [Intent](https://developer.android.com/reference/android/content/Intent.html#Intent) for opening the settings after installing the extension:
    ```
    Intent intent = new Intent();
        intent.setAction("com.samsung.android.sbrowser.contentBlocker.ACTION_SETTING");
        startActivity(intent);
    ```
    

[*provider]:A [wrapper](https://developer.android.com/guide/topics/manifest/provider-element.html) that gives other applications access to your data.

[*meta-data]:The extension's [metadata](https://developer.android.com/guide/topics/manifest/meta-data-element.html).
