こちらを参考させていただきました。

@Override
    public void onClick(View v) {
        // TODO Auto-generated method stub
        if(v == btnFileOpen ) {

        	FileListDialog dialog = new FileListDialog(this);
        	dialog.setDirectorySelect(false);
        	dialog.setOnFileListDialogListener(new onFileListDialogListener() {
        		@Override
        		public void onClickFileList(File file) {
        			if(file == null){
        				//not select
        			}else{
        				//select file or directory
        				//TextView txtinput = (TextView) findViewById( R.id.input_text_id);
        				//txtinput.setText( file.getPath() );
        				readToFile( file.getPath() ) ;
        			}
        		}
        	});
        	dialog.show("/", "select");
        }
    }

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha