Questions tagged [android-afilechooser]

Android library that provides a file explorer to let users select files on external storage.

aFileChooser is an Android Library Project that simplifies the process of presenting a file chooser on Android 2.1+.

Intents provide the ability to hook into third-party app components for content selection. This works well for media files, but if you want users to be able to select any file, they must have an existing "file explorer" app installed. Because many Android devices don't have stock File Explorers, the developer must often instruct the user to install one, or build one, themselves. aFileChooser solves this issue.

Features:

  • Full file explorer
  • Simplify GET_CONTENT Intent creation
  • Hooks into Storage Access Framework
  • Determine MIME data types
  • Follows Android conventions (Fragments, Loaders, Intents, etc.)
  • Supports API 7+

    Setup

    Usage

    Credits

    Licenses

enter image description here enter image description here

35 questions
125
votes
2 answers

Android file chooser

I want to make a file uploader. And I hence I need a file chooser but I don't want to write this by myself. I find OI file manager and I think it suits me. But how can I force user to install OI file manager? If I cannot , is there a better way to…
Bear
  • 5,138
  • 5
  • 50
  • 80
15
votes
2 answers

Android: Open file with intent chooser from URI obtained by Storage Access Framework

In the beginning the user can select files with the new Storage Access Framework (Assuming the app is API>19): https://developer.android.com/guide/topics/providers/document-provider.html Then I save references to those chosen files by saving the…
14
votes
3 answers

Android File Chooser not calling from Android Webview

Its a simple WebApp with a Webview in it and there is a registration page with upload file option. trying to open file chooser when click on browse button but there is not response. i assume that there is some issue in my gradle files. please help…
WaqasArshad
  • 237
  • 1
  • 3
  • 12
14
votes
2 answers

How to Select File on android using Intent

I use this code to use Intent to select any type of file and get it's path in my application //this when button click public void onBrowse(View view) { Intent chooseFile; Intent intent; chooseFile = new…
user7179690
  • 1,051
  • 3
  • 17
  • 40
4
votes
2 answers

Android file chooser is not opening from WebView in Lollipop nor Marshmallow

I'm developing an app, that uses a WebView to access some logic. The logic, has a part where the user can upload a picture, but, I can't seem to find a way for the app to do so. The code I'm using as example is in this link. As you will see, a…
pamobo0609
  • 812
  • 10
  • 21
4
votes
1 answer

Android-Get File path from URI?

I need to get file's path to convert it into input stream for uploading purose. So I choose pdf document using file chooser.I get Uri in onActivityResult().Using uri , I am getting file's path.But it does not return correct path. The absolute…
BABU K
  • 917
  • 13
  • 35
4
votes
4 answers

can't open file chooser in WebView Android 4.4.2 using WebChromeClient

In my webview by clicking "Choose File" button In samsung 7 inch tablet I want to open a File Browser, but I can't open this in Android Version 4.4.2. So can u plz help me for this? Here is my Code. WebViewDemo.java package…
3
votes
2 answers

Android Referencing a library project

My question might be very simple but I cant find the answer: For my android project I try to implement https://github.com/iPaulPro/aFileChooser In the installation instructions we find: Add aFileChooser to your project as an Android Library…
Sven van den Boogaart
  • 11,833
  • 21
  • 86
  • 169
3
votes
0 answers

Choosing directory in aFileChooser

I am using the aFileChooser library to let my user choose file. This library is good because it works with pre Kitkat and post Kitkat ( they changed how you can get the path for files/folders). In addition it shows internal and external. The problem…
Snake
  • 14,228
  • 27
  • 117
  • 250
2
votes
2 answers

How to add Internal and External storage to File Chooser in android

My sample app is open file chooser and select file / directory then getting the path into EditText, I tried the methods in this question and I reached to this result public class MainActivity extends AppCompatActivity { private Button…
2
votes
0 answers

Android - File Chooser modules cannot show directories and files inside storage in KitKat

I want my application load a file with File Chooser. I'd tried some modules to implements it, but strangely my KitKat rooted phone, and unrooted earlier version can read directories and files inside storage, but for unrooted KitKat version cannot…
poring91
  • 393
  • 7
  • 22
1
vote
1 answer

How to get access to the default download file path

I'm trying to open my downloaded files on a specific path (my download folder in the app). Unfortunately, I do not know how to implement this method.I found this way by searching the Internet. ... } else if (id == R.id.nav_MyDownloads) { …
Haj Ali
  • 93
  • 2
  • 11
1
vote
0 answers

How can I return more than one file in the input file (HTML/JS) with this onActivityResult() (Java) function?

Activity Result called by onShowFileChooser event: @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent){ super.onActivityResult(requestCode, resultCode, intent); Toast.makeText(MainActivity.this, "here",…
1
vote
0 answers

How to get selected Google Drive file id in android?

I am working with the task that selected Google drive file has update into the data base. Here my back end team needs Selected Google drive file id for downloading the file. Downloading process has followed by back end team. In android app side just…
1
vote
1 answer

Android File Chooser on Simulator

I have a problem when I am unable to choose the required file in android select file dialog on emulator. I am able to see the file but the selection is disabled as shown in screen capture below. This problem comes only with emulator and not with…
chejaras
  • 862
  • 5
  • 10
1
2 3