title: Why dialog.setFinishOnTouchOutside(false) can not resolve &
body: <p>I'm trying to display popup dialog window.
  Dialog created in this function:</p>
  
  <pre><code>    protected void showLoginDialog() {
      // TODO Auto-generated method stub
      final Dialog dialog = new Dialog(mContext);
      dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
      dialog.setContentView(R.layout.logindialog);
      dialog.setFinishOnTouchOutside(false);
      final EditText edlogin = (EditText)dialog.findViewById(R.id.username);
      final EditText edpass = (EditText)dialog.findViewById(R.id.password);
      Button btnLogin = (Button)dialog.findViewById(R.id.btnLogin);
      Button btnCancel = (Button)dialog.findViewById(R.id.btnCancel);
      btnLogin.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              loginlogin = edlogin.getText().toString();
              loginpassword = edpass.getText().toString();
              loginresult = 1;
              dialog.dismiss();
          }
      });
      btnCancel.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              loginlogin = ""; loginpassword = ""; loginresult = 0;
              dialog.dismiss();
          }
      });
      dialog.show();
  }
  </code></pre>
  
  <p>But <code>dialog.setFinishOnTouchOutside(false)</code> is marked as error with message </p>
  
  <blockquote>
    <p>Cannot resolve method setFinishOnTouchOutside(Boolean)</p>
  </blockquote>
  
  <p>. 
  What's wrong?<br/>
  Main activity of my app extends <code>FragmentActivity</code>.</p>