Samsung GALAXY Android ToApp

Send data to Android app


Simulink® Support Package for Samsung GALAXY® Android™ Devices


Send data to a function in an Android app.

For example, suppose the following:

  • The block input is int32(ones(3,1))

  • The function name is ToAppFcn

Then, the expected function in the Android app would be:

public void ToAppFcn(int[] inData)

Where inData is an integer array of three elements.

The block input supports the following data types: uint8, int8, uint16, int16, uint32, int32, single, and double.

During simulations without hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation.

Dialog Box

Function name

Specify the name of a function in the Android app. The function must accept the data type of the block output data.

Was this topic helpful?