title: android textview not changing the text
body: <p>i got a textview which should changes the text after the intent (directorypicker) finish.that doesn't work.
  heres the code:</p>
  
  <pre><code>text = (TextView) findViewById(R.id.choose3);
          text.setText(globalconstant.path);
  </code></pre>
  
  <p>should change the text when the intent returns the path:</p>
  
  <pre><code>private void addListenerOnButton() {
          choose_button = (Button) findViewById(R.id.button1);
          choose_button.setEnabled(true);
          choose_button.setOnClickListener(new OnClickListener() {
              public void onClick(View arg0) {
                  // DirectoryPicker.START_DIR = "/mnt/";
                  Intent intent = new Intent(settings.this, DirectoryPicker.class);
                  startActivityForResult(intent, DirectoryPicker.PICK_DIRECTORY);
                  // text.setText(globalconstant.path);
                  text = (TextView) findViewById(R.id.choose3);
                  text.setText(globalconstant.path);
                  ;
  
              }
          });
  
      }
  </code></pre>
  
  <p>whats wrong with it? 
  please help me!
  Thank you very much</p>