Questions tagged [filechooser]

A GUI component that allows to navigate over the file system, selecting files and folders of interest.

Usually file chooser is similar to the file explorer. It allows to navigate over the file system, selecting files and folders of interest or to specify yet non-existing files in the existing folder ("Save as").

File chooser can often be configured to show only set of selected file types, allow or disallow multiple selection and allow or disallow selection of folders rather than files.

This component is present in libraries of many languages.

472 questions
0
votes
2 answers

Android File Chooser and File Uploader

What is the best way to make a file chooser (It should be able to choose any type of file) and file up loader in android? min target version - 14 and target version 25
Sanal
  • 418
  • 6
  • 17
0
votes
2 answers

How to save Image in a user selected format using FileChooser in javaFx?

I am trying to save image in a user selected format from FileChooser SaveDialog. Here's my code: java docs says the same thing for both get and set methods I dont get it. File f1 = new File("C:\\Users\\KIRAN\\Desktop\\Andromeda1.png"); …
Can'tCode
  • 43
  • 10
0
votes
1 answer

Android: A function that reads a chosen file and returns String

I made a app for Mac/Windows. On these OSes, I can use JFileChooser to choose a file from my computer. But I'm going to make a mobile version of my app, for Android. Here's my code of mentioned function, that is for a desktop OS: public static…
0
votes
0 answers

How to invoke the stock file browser/chooser in Android 5.1& 6.0

I'm building a toolkit to carry out Root management related functions (not managing root access, but simplifying some system functions), and one of them replaces various system binaries with custom versions that the user chooses. I'm having a bit of…
0
votes
2 answers

An error about listview

I tried to make a file choose following the below link http://www.dreamincode.net/forums/topic/190013-creating-simple-file-chooser/ However, I got the error "Your content must have a ListView whose id attribute is 'android.R.id.list' " I have…
George
  • 169
  • 1
  • 2
  • 10
0
votes
1 answer

Adding an 'Open File' button for selected file

So far I have created a File Explorer - however I want to add a button which will allow the selected file to be opened when clicked. I've heard about the OpenFileDialog but it only seems to show a directory which I don't want. Any ideas? This is…
DoN_Dan
  • 69
  • 1
  • 1
  • 8
0
votes
2 answers

Specifying a specific file type for ListView interface

I have created a file Explorer in C# to select a file from a list of directories, however I have limited knowledge on how to specify the file type itself. I only want .xls files to be displayed, not all files displayed. How do I go about this? I…
DoN_Dan
  • 69
  • 1
  • 1
  • 8
0
votes
0 answers

Java swing - how to choose between programs using JFileChooser and JMenu?

In my program, I have created a menu bar which allows the user to switch between three programs using file chooser. However, it does not seem to be compiling or working. I am pretty sure my code is incorrect however, I could only find a few examples…
assassinweed2
  • 71
  • 1
  • 3
  • 9
0
votes
1 answer

how to insert into a table the file name loaded with filechooser in javaFX?

I'm trying to populate the table with the file name taken by filechooser, in fileName column, how can I include the filename in this column of Tableview ? this is a Interface with sceneBuilder
Margherita
  • 148
  • 11
0
votes
1 answer

JFileChooser shows invalid file size in detail view

Please refer to the image below and clarify me what is the root cause for this. While windows explorer shows correct file size, JFileChooser shows wrong size. I am telling file chooser is wrong because txt file is 0 byte file which I created, but…
Dilanka M
  • 372
  • 1
  • 5
  • 17
0
votes
2 answers

JFileChooser and Reading from Excel File using JAVA

I have a following code import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import…
Ugur Tufekci
  • 350
  • 2
  • 13
0
votes
1 answer

The cordova plugin 'mfilechooser'' is not working on Android phone with cordova 6.3.1

The mfilechooser plugin to work for my cordova based app on the android emulator or device. No errors are reported but the chooser is not launching. Here is the snippet of my code. index.js function choose(){ …
user2570135
  • 2,669
  • 6
  • 50
  • 80
0
votes
0 answers

Android Custom FileChooser

In my app the user has the opportunity to import a file via an intent. Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT); Uri uri = Uri.parse(new Helper(FunctionsActivity.this).getPathToAppFolder()); …
0
votes
1 answer

change the current working directory

How can I make the chosen directory of file chooser into my current working directory. I am making a project that organize the folder and found a similar project on Youtube but it only runs where the organizer.jar file is located and what I want to…
0
votes
2 answers

Java filedialog always prepends /Users//Desktop in Mac

I'm using System.setProperty("apple.awt.fileDialogForDirectories", "true"); to only select folders. When I execute new java.io.File(fd.getFile()).getAbsolutePath();, it always returns /Users//Desktop/. Say I select /Users, it will…