Sending Intents

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.