Tutorials

ANFP(Full Version) :

Set Up File Picker

Filter Types

Google Drive & External Apps

ANFP-Eco :

Set Up ANFP-Eco

Setting up the Android Native File PickerUpdated

In this tutorial, you'll learn how to set up Android native file picker, including opening file picker, retrieving the paths of selected files, cancel events and configuring options in blueprint nodes.

Opening File Picker

There are two Blueprint nodes to open the file picker: with and without filter type. without filter type, all types are selectable. you can set filter type to limit the selectable file types though.

setting Blueprint Nodes to open File Picker

Retrieving Files' paths

Once users pick one or multiple files, an event as "On File Picking Result" is triggered and returns the path of selected selected files as a string.

setting Blueprint Nodes to Retrieve files' paths

Cancel Event

when the file picker returns an empty string or the user doesn’t select any file, a cancellation event is triggered. you can manage this event using the following delegate.

setting Delegate for Cancel Event

Getting The Last Result

getting the path of the last picked file

Delete Files

By picking files from some sources, like Google Drive and External apps, they are copied in internal storage. so this Blueprint node allows you to remove them if needed. you can also use this node to remove files from external storage.

Delete files from directory

Switching between selection modes(Single Selection/ Multi Selection/ Folder Selection)

Enum of Mode Selection

Multi Seleciton

config multi selection Img screenshot of ANFP in multi selection mode

Folder Selection

In folder selection mode user selects a folder at runtime, and path of all files in selected folder, are returned.

!!!Enabling "Folder Selection" disables individual file selection, allowing the user to select only the entire files of a folder.

config folder selection Img screenshot of ANFP in folder selection mode

Get Files In DirectoryNew

This function is a development-time utility for folder selection. It allows the developer to retrieve the paths of all files within a directory, with optional extension filtering (not case- or dot-sensitive).

getting files in a directory