File Dialog Tool is an activity which allows to browse through the file system of your device and pick file paths for loading or saving data.
An example of how to use this library in your own project can be found here: Example app mainActivity
Browsing.
When called with 'save- file' option, a floatig action button to do so is displayed. The arguments returned will show if just the folder or folder and file was picked.
Preview feature.
The first step is to prepare your Android Studio's 'build.gradle' files (Project level and module level). The second step is to allow the permissions needed by the app.
Project level
Under 'allprojects' insert the following line:
maven { url 'https://jitpack.io' }
Module level (usually your 'app'- module)
Under 'dependencies' insert this line:
implementation 'com.github.codingbychanche:FileDialogTool:master-SNAPSHOT'
In the example above the 'SNAPHOT'- tag is used to download the latest version of the code. You should check for the latest release under the 'Relase' tab of this repository and use that instead to import a stable release.
Add the following permissions to your app's 'manifest'- file:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission>
Before starting the app for the first time on your device, you need to set the app's permission to access internal memory (got to settings => app => permissions).
Finally add:
<activity android:name="berthold.filedialogtool.FileDialog"/>