# Browser

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/provider/Browser#constants)\|[Ctors](https://developer.android.com/reference/android/provider/Browser#pubctors)\|[Methods](https://developer.android.com/reference/android/provider/Browser#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/provider/Browser#inhmethods)  

# Browser

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/provider/Browser "View this page in Kotlin")\|Java

`
public


class
Browser
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|--------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.Browser |

<br />

*** ** * ** ***

## Summary

|                                                                                                                                  ### Constants                                                                                                                                  ||
|--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [EXTRA_APPLICATION_ID](https://developer.android.com/reference/android/provider/Browser#EXTRA_APPLICATION_ID) The name of the extra data when starting the Browser from another application.                |
| [String](https://developer.android.com/reference/java/lang/String) | [EXTRA_CREATE_NEW_TAB](https://developer.android.com/reference/android/provider/Browser#EXTRA_CREATE_NEW_TAB) Boolean extra passed along with an Intent to a browser, specifying that a new tab be created. |
| [String](https://developer.android.com/reference/java/lang/String) | [EXTRA_HEADERS](https://developer.android.com/reference/android/provider/Browser#EXTRA_HEADERS) The name of the extra data in the VIEW intent.                                                              |
| [String](https://developer.android.com/reference/java/lang/String) | [INITIAL_ZOOM_LEVEL](https://developer.android.com/reference/android/provider/Browser#INITIAL_ZOOM_LEVEL) The name of extra data when starting Browser with ACTION_VIEW or ACTION_SEARCH intent.            |

|                                     ### Public constructors                                      ||
|-----------------------------------------------------------------------------------------------|---|
| ` `[Browser](https://developer.android.com/reference/android/provider/Browser#Browser())`() ` |

|                                                                                                                                                                                                                                               ### Public methods                                                                                                                                                                                                                                                ||
|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static final void` | ` `[sendString](https://developer.android.com/reference/android/provider/Browser#sendString(android.content.Context,%20java.lang.String))`(`[Context](https://developer.android.com/reference/android/content/Context)` context, `[String](https://developer.android.com/reference/java/lang/String)` string) ` Sends the given string using an Intent with[Intent.ACTION_SEND](https://developer.android.com/reference/android/content/Intent#ACTION_SEND)and a mime type of text/plain. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### EXTRA_APPLICATION_ID

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String EXTRA_APPLICATION_ID
```

The name of the extra data when starting the Browser from another application.

The value is a unique identification string that will be used to identify the calling application. The Browser will attempt to reuse the same window each time the application launches the Browser with the same identifier.

<br />

Constant Value: "com.android.browser.application_id"  

### EXTRA_CREATE_NEW_TAB

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String EXTRA_CREATE_NEW_TAB
```

Boolean extra passed along with an Intent to a browser, specifying that a new tab be created. Overrides EXTRA_APPLICATION_ID; if both are set, a new tab will be used, rather than using the same one.

<br />

Constant Value: "create_new_tab"  

### EXTRA_HEADERS

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String EXTRA_HEADERS
```

The name of the extra data in the VIEW intent. The data are key/value pairs in the format of Bundle. They will be sent in the HTTP request headers for the provided url. The keys can't be the standard HTTP headers as they are set by the WebView. The url's schema must be http(s).

<br />

<br />

Constant Value: "com.android.browser.headers"  

### INITIAL_ZOOM_LEVEL

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String INITIAL_ZOOM_LEVEL
```

The name of extra data when starting Browser with ACTION_VIEW or ACTION_SEARCH intent.

The value should be an integer between 0 and 1000. If not set or set to 0, the Browser will use default. If set to 100, the Browser will start with 100%.

<br />

Constant Value: "browser.initialZoomLevel"

## Public constructors

### Browser

```
public Browser ()
```

<br />

<br />

## Public methods

### sendString

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final void sendString (Context context, 
                String string)
```

Sends the given string using an Intent with[Intent.ACTION_SEND](https://developer.android.com/reference/android/content/Intent#ACTION_SEND)and a mime type of text/plain. The string is put into[Intent.EXTRA_TEXT](https://developer.android.com/reference/android/content/Intent#EXTRA_TEXT).

<br />

|                             Parameters                              ||
|-----------|----------------------------------------------------------|
| `context` | `Context`: the context used to start the activity <br /> |
| `string`  | `String`: the string to send <br />                      |