android.media.midi.MidiDevice.MidiConnection Java Examples
The following examples show how to use
android.media.midi.MidiDevice.MidiConnection.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainActivity.java From media-samples with Apache License 2.0 | 6 votes |
@Override public void onPortsConnected(final MidiConnection connection) { runOnUiThread(new Runnable() { @Override public void run() { if (connection == null) { Toast.makeText(MainActivity.this, R.string.error_port_busy, Toast.LENGTH_SHORT) .show(); mPortSelector.clearSelection(); } else { Toast.makeText(MainActivity.this, R.string.port_open_ok, Toast.LENGTH_SHORT) .show(); } } }); }
Example #2
Source File: MainActivity.java From android-MidiSynth with Apache License 2.0 | 6 votes |
@Override public void onPortsConnected(final MidiConnection connection) { runOnUiThread(new Runnable() { @Override public void run() { if (connection == null) { Toast.makeText(MainActivity.this, R.string.error_port_busy, Toast.LENGTH_SHORT) .show(); mPortSelector.clearSelection(); } else { Toast.makeText(MainActivity.this, R.string.port_open_ok, Toast.LENGTH_SHORT) .show(); } } }); }
Example #3
Source File: MainActivity.java From android-midisuite with Apache License 2.0 | 6 votes |
@Override public void onPortsConnected(final MidiConnection connection) { runOnUiThread(new Runnable() { @Override public void run() { if (connection == null) { Toast.makeText(MainActivity.this, R.string.error_port_busy, Toast.LENGTH_LONG) .show(); mPortSelector.clearSelection(); } else { Toast.makeText(MainActivity.this, R.string.port_open_ok, Toast.LENGTH_LONG) .show(); } } }); }
Example #4
Source File: MidiPortConnector.java From media-samples with Apache License 2.0 | 2 votes |
/** * Called to respond to a {@link #connectToDevicePort} request * * @param connection * a {@link MidiConnection} that represents the connected * ports, or null if connection failed */ abstract public void onPortsConnected(MidiConnection connection);
Example #5
Source File: MidiPortConnector.java From media-samples with Apache License 2.0 | 2 votes |
/** * Called to respond to a {@link #connectToDevicePort} request * * @param connection * a {@link MidiConnection} that represents the connected * ports, or null if connection failed */ abstract public void onPortsConnected(MidiConnection connection);
Example #6
Source File: MidiPortConnector.java From android-MidiSynth with Apache License 2.0 | 2 votes |
/** * Called to respond to a {@link #connectToDevicePort} request * * @param connection * a {@link MidiConnection} that represents the connected * ports, or null if connection failed */ abstract public void onPortsConnected(MidiConnection connection);
Example #7
Source File: MidiPortConnector.java From android-MidiScope with Apache License 2.0 | 2 votes |
/** * Called to respond to a {@link #connectToDevicePort} request * * @param connection * a {@link MidiConnection} that represents the connected * ports, or null if connection failed */ abstract public void onPortsConnected(MidiConnection connection);
Example #8
Source File: MidiPortConnector.java From android-midisuite with Apache License 2.0 | 2 votes |
/** * Called to respond to a {@link #connectToDevicePort} request * * @param connection * a {@link MidiConnection} that represents the connected * ports, or null if connection failed */ abstract public void onPortsConnected(MidiConnection connection);