Example #1
0
 //Methods which are handling BT connection
 public void CreateBluetoothConnection()
 {
     try
     {
         mBluetoothConnection = new BluetoothConnection(this);
         mBTconnected         = true;
     }
     catch (System.Exception ex)
     {
         mSettingsFragment.mTextViews[0].Text = ex.Message;
         mBluetoothConnection = null;
     }
 }
Example #2
0
 public void CloseBluetoothConnection()
 {
     try
     {
         mBluetoothConnection._socket.Close();
     }catch (System.Exception ex)
     {
         mSettingsFragment.mTextViews[0].Text = ex.Message;
     }finally
     {
         mBluetoothConnection = null;
         mBTconnected         = false;
     }
 }
 public BluetoothDecoder(BluetoothConnection _parent)
 {
     parent = _parent;
 }