# How to inject TON's WalletKit into WebView on Android platform (https://docs-i0yym09dy-ton-core-docs.vercel.app/llms/ecosystem/walletkit/android/webview/content.md)



<Callout type="tip">
  Initialize the WalletKit before injecting it into WebView. See the [initialization guide](/llms/ecosystem/walletkit/android/init/content.md) for details.
</Callout>

Injecting WalletKit into WebView allows integrating the wallet service with a dApp running in a native WebView and handling its events.

To do so, enable JavaScript in the WebView and inject `TonConnect`.

```kotlin
import android.webkit.WebView
import io.ton.walletkit.ITONWalletKit
import io.ton.walletkit.extensions.injectTonConnect

val webView = WebView(context)
webView.settings.javaScriptEnabled = true

webView.injectTonConnect(walletKit)
webView.loadUrl(/* dApp URL */)
```

After the injection is complete, handle dApp events from a [custom events handler](/llms/ecosystem/walletkit/android/events/content.md).
