SDK DocumentationRecipesAnnouncementsSupport Forum
AndroidiOSAnnouncementsSupport Forum


## Using WebView from more than one process at once

**Issue**

`RuntimeException: Using WebView from more than one process at once`.

**Cause**

Typically, occurs when _multiple processes within 1 app_ use web views.

`TBLClassicUnit` extends `WebView`, and must be treated as a `WebView` in this regard.

**Resolution**

Make sure that your app uses _1 process_ to manage all web views.

In the words of the <a href="https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebView.java" target="_blank">WebView JavaDoc</a>:

Most applications should simply ensure that all components of the app that rely on WebView are in the same proces, to avoid needing multiple data directories.

**Alternative Resolution**

If you are unable to implement the above resolution, then you can try the following:

Make sure that each process in your app calls the `WebView.setDataDirectorySuffix(<Process-specific data directory>)` method, before creating or using a `WebView` instance.

`TBLClassicUnit` extends `WebView`, and must be treated as a `WebView` in this regard.

**Resources**

<a href="https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebView.java" target="_blank">WebView JavaDoc</a>