title: Start a new Activity from non Activity class
body: <p>I want to start a new activity in non-Activity class that implements a <code>DialogListener</code> following is my code:</p>
  
  <pre><code>public class FacebookLoginDialog implements DialogListener {
    @Override
    public void onComplete(Bundle values) {
      HomeActivity.showInLog(values.toString());
  
      Intent i1 = new Intent (this, SearchActivity.class);
      startActivity(i1);
    }
  
    @Override
    public void onFacebookError(FacebookError e) {
      // TODO Auto-generated method stub
    }
  
    @Override
    public void onError(DialogError e) {
      // TODO Auto-generated method stub
    }
  
    @Override
    public void onCancel() {
      // TODO Auto-generated method stub
    }
  }
  </code></pre>
  
  <p>I can't start the new activity using intent in <code>onComplete</code> method, please help.</p>
  
  <p>Thanks</p>