file-browser

Android custom list dialog

旧城冷巷雨未停 提交于 2019-11-30 16:35:43
问题 Hi, I'm working on a simple file browser app. I have most of it set up (where it lists everything out in the different directories and what not) but what I'm stuck on right now (worked on it for a few hours) is when a list item is selected, I want to have a custom list dialog appear. I found this code on the android development page and modded it slightly. Currently it just gives a toast of what was selected but I need the three items to be separate. That is, I'd like to do more than a toast

In Eclipse, how to open a file browser in the directory of the currently edited file

我的梦境 提交于 2019-11-28 18:44:38
I know it's possible in eclipse to open file browsers from your project's resource browser , but is it possible for files that aren't part of your project ? Typically external includes are not found in your resource browser... If there is the equivalent of $(resource_loc) for the editor, it would work.. But I wasn't able to find it. Can anyone help me on this ? Thanks! EDIT : I Found StartExplorer , but it doesn't work for me. It is hardcoded to use WINDOWS explorer or cmd.exe . Also, it still requires you to use the resource browser. Other than that it can open paths selected in the editor,

Browser download file prompt using JavaScript

痞子三分冷 提交于 2019-11-28 13:24:21
I was wondering if there was any method to implement browser's download file prompt using JavaScript. My reason - well users will be uploading files to a local fileserver which cannot be accessed from the webserver. In other words, both will be on different domains! For example, let’s say websites hosted on www.xyz.com , but files would reside on local file server with address like \\10.10.10.01\Files\file.txt . How am I uploading/transferring file to local fileserver... using ActiveX and VBscript! (don’t ask :-) So I am storing local file path in my database and binding that data to a grid.

In Eclipse, how to open a file browser in the directory of the currently edited file

天大地大妈咪最大 提交于 2019-11-27 20:25:32
问题 I know it's possible in eclipse to open file browsers from your project's resource browser, but is it possible for files that aren't part of your project ? Typically external includes are not found in your resource browser... If there is the equivalent of $(resource_loc) for the editor, it would work.. But I wasn't able to find it. Can anyone help me on this ? Thanks! EDIT : I Found StartExplorer, but it doesn't work for me. It is hardcoded to use WINDOWS explorer or cmd.exe . Also, it still

how to have a directory dialog

别说谁变了你拦得住时间么 提交于 2019-11-27 13:04:47
In PyQt, how does one display a file browser that shows and selects only directories (not files)? And how does one retrieve the name of the selected directory? TZHX From inside your QDialog/QWidget class, you should be able to do: file = str(QFileDialog.getExistingDirectory(self, "Select Directory")) 来源: https://stackoverflow.com/questions/4286036/how-to-have-a-directory-dialog

Browser download file prompt using JavaScript

时光总嘲笑我的痴心妄想 提交于 2019-11-27 07:38:58
问题 I was wondering if there was any method to implement browser's download file prompt using JavaScript. My reason - well users will be uploading files to a local fileserver which cannot be accessed from the webserver. In other words, both will be on different domains! For example, let’s say websites hosted on www.xyz.com , but files would reside on local file server with address like \\10.10.10.01\Files\file.txt . How am I uploading/transferring file to local fileserver... using ActiveX and

Android opening a file with ACTION_GET_CONTENT results into different Uri's

十年热恋 提交于 2019-11-27 07:14:18
I am trying to open files by using Intent.ACTION_GET_CONTENT . Dependent on the Android version/device brand the file browser opens and I get the following results: Selecting a file from Downloads : content://com.android.providers.downloads.documents/document/446 Selecting a file from Fotos : content://media/external/images/media/309 Selecting a file from FileCommander : file:///storage/emulated/0/DCIM/Camera/20141027_132114.jpg I can open all these files except when I try to open a file from Downloads, , Audio , Afbeeldingen (Images) It's likely I can't handle this kind of Uri: content://com

how to have a directory dialog

ⅰ亾dé卋堺 提交于 2019-11-26 18:15:10
问题 In PyQt, how does one display a file browser that shows and selects only directories (not files)? And how does one retrieve the name of the selected directory? 回答1: From inside your QDialog/QWidget class, you should be able to do: file = str(QFileDialog.getExistingDirectory(self, "Select Directory")) 来源: https://stackoverflow.com/questions/4286036/how-to-have-a-directory-dialog

Launching an intent for file and MIME type?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 15:47:50
问题 I've reviewed all the similar questions here, but I can't for the life of me figure out what I'm doing wrong. I've written an application that tries to launch various files, sort of a file browser. When a file is clicked, it tries to launch the program based on its associated MIME type or it presents the "Choose Application to Launch" dialog. Here's the code I'm using to launch: File file = new File(app.mediaPath() + "/" +_mediaFiles.get(position)); Intent myIntent = new Intent(android