title: How can I connect to a already paired device?
body: <p>I have my user inteface ready but I'm really stuck on how to create the logic to connect to a already paired device on my phone?.... I'm very new in all of this and I'll appreciate the help.</p>
  
  <p>This is how I have my Main.java file:</p>
  
  <pre><code>package com.example.mustangsound;
  
  
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  import android.bluetooth.BluetoothAdapter;
  import android.bluetooth.BluetoothDevice;
  import android.bluetooth.BluetoothSocket;
  
  
  public class MainActivity extends Activity {
  
      BluetoothAdapter mBluetoothAdapter;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  
      public void BTConnect (){
  
  
      }
  
  
  
      public void LightsOn (){
  
  
  
      }
  
      public void LightsOff (){
  
      }
  
      public void DoorsOpen (){
  
      }
  
      public void DoorsClose (){
  
      }
  
      public void SysOn (){
  
      }
  
      public void SysOff (){
  
      }
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <p>I want to add the code inside the public void BTConnect (). Again, thanks for the help.</p>