Android APIs
public class

Browser

extends Object
java.lang.Object
   ↳ android.provider.Browser

Summary

Constants
String EXTRA_APPLICATION_ID The name of the extra data when starting the Browser from another application.
String EXTRA_CREATE_NEW_TAB Boolean extra passed along with an Intent to a browser, specifying that a new tab be created.
String EXTRA_HEADERS The name of the extra data in the VIEW intent.
String INITIAL_ZOOM_LEVEL The name of extra data when starting Browser with ACTION_VIEW or ACTION_SEARCH intent.
Public Constructors
Browser()
Public Methods
final static void sendString(Context context, String string)
Sends the given string using an Intent with ACTION_SEND and a mime type of text/plain.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String EXTRA_APPLICATION_ID

Added in API level 3

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.

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

public static final String EXTRA_CREATE_NEW_TAB

Added in API level 12

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.

Constant Value: "create_new_tab"

public static final String EXTRA_HEADERS

Added in API level 8

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).

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

public static final String INITIAL_ZOOM_LEVEL

Added in API level 1

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%.

Constant Value: "browser.initialZoomLevel"

Public Constructors

public Browser ()

Added in API level 1

Public Methods

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

Added in API level 1

Sends the given string using an Intent with ACTION_SEND and a mime type of text/plain. The string is put into EXTRA_TEXT.

Parameters
context the context used to start the activity
string the string to send