My final code, works for my needs
public void btnPress_onClick ( View v ) { Intent intent = new Intent ( Intent.ACTION_GET_CONTENT ); switch ( v.getId ( ) ) { case R.id.btnFilesystem: setContentView ( R.layout.filesystem ); txtFileSource = findViewById ( R.id.txtboxSourcePath ); txtFileDest = findViewById ( R.id.txtboxDestPath ); break; case R.id.btnTextEdit: setContentView ( R.layout.textedit ); textBox = findViewById ( R.id.textEditField ); break; case R.id.btnHelp: setContentView ( R.layout.help ); break; case R.id.btnSecurity: setContentView ( R.layout.security ); spnrPivotTable = findViewById ( R.id.spnrSelectPivotTable ); showKey = findViewById ( R.id.chkShowKey ); passKey = findViewById ( R.id.txtPassKey ); break; case R.id.btnHome: setContentView ( R.layout.main ); break; case R.id.btnBrowseSource: intent.setType ( "*/*" ); startActivityForResult ( Intent.createChooser ( intent, "Select a file" ), BROWSE_SOURCE ); break; case R.id.btnBrowseDest: intent.setType ( "*/*" ); startActivityForResult ( Intent.createChooser ( intent, "Select a file" ), BROWSE_DEST ); break; default: FancyToast.makeText ( MainActivity.this, "Function not yet coded.", Toast.LENGTH_SHORT, FancyToast.INFO, true ).show ( ); } } @Override protected void onActivityResult ( int requestCode, int resultCode, Intent data ) { switch ( requestCode ) { case BROWSE_SOURCE: if ( resultCode == RESULT_OK ) { txtFileSource.setText ( data.getData ( ).getPath ( ) ); } else { FancyToast.makeText ( MainActivity.this, "An Error occured", FancyToast.ERROR, FancyToast.LENGTH_LONG, true ).show ( ); } break; case BROWSE_DEST: if ( resultCode == RESULT_OK ) { txtFileDest.setText ( data.getData ( ).getPath ( ) ); } else { FancyToast.makeText ( MainActivity.this, "An Error occured", FancyToast.ERROR, FancyToast.LENGTH_LONG, true ).show ( ); } break; } }