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
1
vote
1 answer

How to filter android file chooser apps

I am using below code to select the file from device Intent intent = new Intent(Intent.ACTION_PICK); intent.setType("*/*"); intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true); startActivityForResult(intent,1212); The above code give below output Is…
1
vote
2 answers

Any Option other than OpenFileChooser

I am Using and OpenFileChooser it is working on Android 4.2.2(Jelly Bean) but not working on Android Lollipop (5.0) version.So is there any option to do this thing which support from 4.0 to until new version. I am using this…
user6044738
1
vote
1 answer

How To Test for Android File Chooser Availability

I'm trying to test for file chooser availability. I assumed an error would be returned if none was available, however, this is not the case. Here's my code: public void doImport() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); …
TonyMLake
  • 67
  • 1
  • 9
1
vote
1 answer

ClassNotFound Exception while class is declared in Manifest

I'm using the aFileChooser library, and every time I select to choose a file, I get a class not found error, even though I have added it to my build path and Manifest. Here's whats in mu Manifest: …
dogger20011
  • 255
  • 2
  • 13
1
vote
2 answers

Android : How to get file data from a Filechooser?

I have a filechooser that I call in a webview in order to upload a file. The method allowing me to retrieve the file in my filechooser activity is as follows : @Override protected void onListItemClick(ListView l, View v, int position, long id) { …
zied
  • 201
  • 3
  • 7
  • 17
0
votes
2 answers

How to do a FileChooser into a WebView Android App

I'm making a WebView within an application to respond to a JotForm form, this form has a button to send files, how do I make it so that when the button is clicked, the application opens the device's file explorer? this is my Kotlin Code package…
0
votes
0 answers

Intent chose file - How to set type as a .keystore?

I'm trying to select a file using the Intent .ACTION_GET_CONTENT Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT); chooseFile.setType("*/*"); chooseFile = Intent.createChooser(chooseFile, "Select…
DIRTY DAVE
  • 2,523
  • 2
  • 20
  • 83
0
votes
1 answer

What is needed to select file in Android Emulator?

Real phone, Android Gingerbread, I deploy my app to the phone, trigger file selection, file chooser shows up, I navigate to the folder I want, tap on the file, voila, file loaded. Android emulator, Android Oreo, I deployed my app, I uploaded the…
greenoldman
  • 16,895
  • 26
  • 119
  • 185
0
votes
1 answer

how to open only image from file manager folders in android activity programmatically

i'm developing an android gallery application,so i want to open only image/photo folder from when i click the file chooser button, i'm trying to open it but all unnecessary folders are showing the open activity (music/video/contact/.etc).i want to…
0
votes
0 answers

How to get directory

I'm new in Android studio. So I got source code from here. It worked for file choosing. However I expect to get directory only. Please help me how to edit this method to achieve it private void addFileChooserFragment() { FileChooser.Builder…
ELIP
  • 311
  • 6
  • 19
0
votes
1 answer

Filechooser selecting a word file downloaded from GMail crashes app

I am using a file chooser to pick a WORD file downloaded from GMail, it causes the app crashed.Here's my code segment: == file chooser code == Intent intent = new Intent(); intent.setAction(Intent.ACTION_OPEN_DOCUMENT);…
Shawn
  • 530
  • 1
  • 5
  • 15
0
votes
1 answer

File path in real device shows wrong path

In my class, I use the following method to get the file path, but it works only on the emulator; why? My problem is with the real device (Samsung Galaxy j5): The files in the internal hard:Encounter with Exception. The files in the external hard:…
HajAli
  • 49
  • 8
0
votes
0 answers

select single as well as multiple file from SD card in android

In my application I have a button clicking which will open up a file chooser and after choosing files, I am able to get the selected file's uri inside onActivityResult(). However, the issue what I am finding is I always have to select multiple files…
Animesh Jena
  • 1,541
  • 1
  • 25
  • 44
0
votes
1 answer

i am trying to send email with attachment , but when i click send the mail is sent but without attachment(without any intent))

so what i want to do with my app is: i want to send feedback to certain email address with attachment. but when i try to click send button the mail is sent but there is no file attached with the mail and it throws "open failed: ENOENT (No such file…
0
votes
2 answers

Getting error: Cannot resolve method 'makeText' in Android

I am a newbie. Getting error: Cannot resolve method 'makeText' I am using navigation drawer and My class name is MainFragment.java. Actually I was to trying to use File and Folder Explorer, only this error. What I have tried: Tried using…
Bati
  • 529
  • 3
  • 6
  • 15