# WebIntent Plugin (Android)

WebIntent plugin lets you start an installed application from within Monaca application. The following sample will start an app that will display a map.

{% hint style="info" %}
This plugin is available only to Android platform.
{% endhint %}

## Enable Plugin in Monaca

1. From the IDE menu, go to `Configure → Cordova Plugin Settings`.
2. Under *Available Plugins* section, hover over the `WebIntent` plugin and click `Enable` button.

![](https://3091308003-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MfWe1U2tFctp8FkP9W8%2F-Mff9gMaVvK2F-dK9bD8%2F-Mff9qCzQKvndMRPUxRI%2Fimage.png?alt=media\&token=956070d5-c039-497d-ab16-5f9731bb2237)

## WebIntent Plugin Demo

```markup
<!DOCTYPE HTML>
<html>
<head>
  <title>WebIntent DEMO</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, user-scalable=no">
  <script src="components/loader.js"></script>
  <link rel="stylesheet" href="components/loader.css">

  <script type="text/javascript">
    function startActivity() {
      window.plugins.webintent.startActivity({
        action: window.plugins.webintent.ACTION_VIEW,
        url: 'geo:0, 0?q=' + 'dummy address'},
        function() {},
        function() {alert('Failed to open URL via Android Intent')}
    );
  }
  </script>
</head>
<body>
  <hr> WebIntent test <hr><br>
  <input type="button" onClick ="startActivity()" value ="startActivity()" /><br>

</body>
</html>
```

Using `"url"` attribute of the `"startActivity"` function, an app can specify the target app to be launched. Here are some examples:

```javascript
//Call to the specified phone number
url: 'tel: phone_number=' + '03-5875-6862'

//Open the specified page in a browser
    url: 'http://www.asial.co.jp'

//Open the information of the 1st person in the contact
    url: 'content://contacts/people/1'
```

See Also:

* [Core Cordova Plugins](https://en.docs.monaca.io/reference/core-cordova-plugins)
* [Monaca Power Plugins](https://en.docs.monaca.io/reference/power_plugins)
