question: private void selectFile ( int titleMsg , int buttonMsg , String settingsName , String defaultDir , int dialog , int result ) { setAutoMode ( AutoMode . OFF ) ; String action = "org.openintents.action.PICK_FILE" ; Intent i = new Intent ( action ) ; String currentFile = settings . getString ( settingsName , "" ) ; String sep = File . separator ; if ( ! currentFile . contains ( sep ) ) currentFile = Environment . getExternalStorageDirectory ( ) + sep + defaultDir + sep + currentFile ; i . setData ( Uri . fromFile ( new File ( currentFile ) ) ) ; i . putExtra ( "org.openintents.extra.TITLE" , getString ( titleMsg ) ) ; i . putExtra ( "org.openintents.extra.BUTTON_TEXT" , getString ( buttonMsg ) ) ; try { startActivityForResult ( i , result ) ; } catch ( ActivityNotFoundException e ) { removeDialog ( dialog ) ; showDialog ( dialog ) ; } }
target:  Open a load/save file dialog. Uses OI file manager if available. 