Skip to content

Activity Starter

Non-Visible component
Category Requires Version
Connectivity API 21, Android 5.0 Lollipop 6

Overview

A component that can launch an activity using the StartActivity method.

Activities that can be launched include:

  • starting other App Inventor for Android apps
  • starting the camera application
  • performing web search
  • opening a browser to a specified web page
  • opening the map application to a specified location

You can also launch activities that return text data. See the documentation on using the Activity Starter for examples.

Events

Activity Canceled

Event raised if this ActivityStarter returns because the activity was canceled.

ActivityError

The ActivityError event is no longer used. Please use the Screen.ErrorOccurred event instead.

Params
message Text

After Activity

Event raised after this ActivityStarter returns.

Params
result Text

Methods

Resolve Activity

Returns: Text

Returns the name of the activity that corresponds to this ActivityStarter, or an empty string if no corresponding activity can be found.

Start Activity

Start the activity corresponding to this ActivityStarter.

Properties

Action

Text ➖ Read Write - Designer Blocks

Returns the action that will be used to start the activity.

Activity Class

Text ➖ Read Write - Designer Blocks

Returns the class part of the specific component that will be started.

Activity Package

Text ➖ Read Write - Designer Blocks

Returns the package part of the specific component that will be started.

Data Type

Text ➖ Read Write - Designer Blocks

Returns the MIME type to pass to the activity.

Data Uri

Text ➖ Read Write - Designer Blocks

Returns the data URI that will be used to start the activity.

Extra Key

Text ➖ Read Write - Designer Blocks

Returns the extra key that will be passed to the activity
DEPRECATED: New code should use Extras property instead.

Extra Value

Text ➖ Read Write - Designer Blocks

Returns the extra value that will be passed to the activity
DEPRECATED: New code should use Extras property instead.

Extras

List ➖ Read Write - Blocks

Specifies the list of key-value pairs that will be passed as extra data to the activity.

Result

Text ➖ Read - Blocks

Returns the result from the activity.

Result Name

Text ➖ Read Write - Designer Blocks

Returns the name that will be used to retrieve a result from the activity.

Result Type

Text ➖ Read - Blocks

Returns the MIME type from the activity.

Result URI

Text ➖ Read - Blocks

Returns the URI from the activity.


Last update: November 9, 2022