Skip to content
pocmo edited this page Feb 4, 2013 · 2 revisions

An Intent is sent by using the Transmitter class. A TransmitterException is thrown in case of error.

Sample code

// Create an Intent object to send.
Intent intent = new Intent();

// Transmitter using default multicast address and port.
Transmitter transmitter = new Transmitter(); 

try {
    transmitter.transmit(intent);
} catch (TransmitterException exception) {
    // Handle error
}
Clone this wiki locally