i got a textview which should changes the text after the intent (directorypicker) finish.that doesn't work. heres the code:
text = (TextView) findViewById(R.id.choose3);
text.setText(globalconstant.path);
should change the text when the intent returns the path:
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);
;
}
});
}
whats wrong with it? please help me! Thank you very much