Skip to content

SL4A CommonIntentsFacade

michael edited this page Nov 9, 2015 · 1 revision

A selection of commonly used intents. These can be used to trigger some common tasks.


pick Display content to be picked by URI (e.g. contacts)
uri (String)
returns: (Intent) A map of result values.
scanBarcode Starts the barcode scanner.
returns: (Intent) A Map representation of the result Intent.
search Starts a search for the given query.
query (String)
view Start activity with view action by URI (i.e. browser, contacts, etc.).
uri (String)
type (String) MIME type/subtype of the URI (optional)
extras (JSONObject) a Map of extras to add to the Intent (optional)
viewContacts Opens the list of contacts.
viewHtml Opens the browser to display a local HTML file.
path (String) the path to the HTML file
viewMap Opens a map search for query (e.g. pizza, 123 My Street).
query, e.g. pizza, 123 My Street (String)

Clone this wiki locally