Working with Send Android Broadcast Process [Early Adopter]

Navigation:  How to Work with Processes > Working with the Other Processes Group >

Working with Send Android Broadcast Process [Early Adopter]

Previous pageReturn to chapter overviewNext page

 

Process Purpose

 

 

The "Send Android Broadcast" process is used to send a broadcast, outside the MCL application environment, to an interested application within the Android Operating System.

No response is expected from the component receiving the broadcast.

This process ONLY applies to Android target devices.

 

 

Be aware that this process is based on a specific Android function (= sendBroadcast) which is NOT developed/managed by MCL.

This function can be changed, at any moment, without MCL knowledge, so we recommend you check the Android developer support page for specific information on this function and examples.

 

This is a Beta process that must be enabled in the "Tools" menu - Early Adopter (Beta) option. Once enabled, it becomes available in the "Others" processes group.

It requires MCL-Client 4.10P120 or higher.

 

 

 

When you add a process, you are required to define its settings. This occurs in the process's properties window which is displayed automatically after having added the "Send Android Broadcast" process. In this case, the properties window includes several tabs - "General", "Send" and "Error".

If any subsequent edition is required, double-click the process to open its properties window and enter the necessary modifications.

 

"General" tab

 

.

 

Fill in the following options:

 

Send Android Broadcast

Action

Define the general action to be performed - enter an explicit action string directly OR  click and select a variable with that value.

URI

Define the data to operate on. Enter the intended target data in URI format OR  click and select a variable with that value.

MIME type

If required, specify the MIME type of the intended target data. If this option is left empty, the type is inferred by the data itself.

Component

If required, explicitly define the component that will handle the action/intent. Enter it OR click and select a variable with that value.

 

Proceed to the "Send" tab.

 

"Send" tab

 

 

Fill in the following options:

 

Extra Parameters to Send

Name

Enter the name of the intended extra parameter OR  click to select the variable with the intended value.

Type

Select the type of the extra parameter from the drop-down.

Array

Check the corresponding check box, if you want to send the parameter value(s) as an array.

Value

Enter a value for the extra parameter OR  click to select the variable with the intended value.

 

Use the editing icons to the right of the table to move the rows up and down and to delete or add more rows.

 

Click the "Error" tab to continue.

 

"Error" tab

 

 

Fill in the available option:

 

If Error

Go to

Select a target location from the drop-down OR  the list, if an error occurs in the execution of the defined action/intent. See Detail of a window below.

 

When defining a screen as a target destination (ex: via a “Go to” process), you CANNOT use variables to specify the name of that target screen. You must select the intended screen from the available drop-down/list.

 

Detail of a window:

 

 

"S:Menu" is a screen included in the same program as the process.

"R:Routine_1" is a routine included in the same program as the process.

 

If required, use the icon to attach any relevant notes to this process. Click it and enter your notes in the resulting text box. These notes will be displayed in the corresponding "Actions" tab or "Process" window (in the "Notes" field) and in the "Developer Report".

 

After filling in the required options, click to conclude.

The added process is displayed in the corresponding "Actions" tab or "Process" window.