I'm running the BluetoothChat application with modifications made as follows :
BluetoothChatService
// Unique UUID for this application
private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
BluetoothChatService
// The action listener for the EditText widget, to listen for the return key
private TextView.OnEditorActionListener mWriteListener =
new TextView.OnEditorActionListener() {
public boolean onEditorAction(TextView view, int actionId, KeyEvent event) {
// If the action is a key-up event on the return key, send the message
if (actionId == EditorInfo.IME_NULL && event.getAction() == KeyEvent.ACTION_UP) {
String message = view.getText().toString();
sendMessage(message+ "\r");//My CHANGE
}
if(D) Log.i(TAG, "END onEditorAction");
return true;
}
};
The connection to the OBD device is perfect, but I do not receive any data from the device when i send "ATI" or "010C" etc.
I'm running the App in Android 4.4.2 (Kit Kat) and the App is based on the Sample BluetoothChat Application in Android 2.2