title: cant connect to facebook with a network thread
body: <p>I need to connect to facebook so I use a Tread when using the network. but I have a problem:</p>
  
  <pre><code> Thread t = new Thread(new Runnable() {
          @Override
          public void run() {
                      FacebookConnectTask task = new FacebookConnectTask("facebookId", "token", "email", facebookGender,0, 0);
  
                      task.setOnPreExecuteListener(this);
                      task.setOnDoneListener(this);
  
                      task.execute();
                  }
      });
      t.start();
  
  }
  </code></pre>
  
  <p>I cant do </p>
  
  <pre><code>task.setOnPreExecuteListener(this);
  task.setOnDoneListener(this);
  </code></pre>
  
  <p>eclipse gives me this error: <strong>"The method setOnDoneListener(Task.OnDoneListener) in the type Task is not applicable for the arguments (new Runnable(){})"</strong>  </p>
  
  <p>How can i fix this?</p>
  
  <p>Thanks!</p>