Steps to Pick a File Using Activity Starter
- Add Components
- Drag and drop a Button (to trigger file selection).
- Drag and drop a Label (to display the selected file path).
- Drag and drop an Activity Starter from the Connectivity section.
- Configure the Activity Starter Properties
- Action:
android.intent.action.GET_CONTENT
- Data Type:
*/*
(to allow all file types)
- Blocks Configuration
- When the button is clicked, set the Activity Starter properties and start the activity.
- When the activity finishes, retrieve the selected file’s URI and display it.
Blocks should be like this :
Extension of file utilities
com.mrkoder.file.util.dev.fileutilities.aix (40.3 KB)