-
Notifications
You must be signed in to change notification settings - Fork 4
File Pick
Roman Tcaregorodtcev edited this page Mar 30, 2018
·
1 revision
Allow the user to select a files and return it.
OmegaIntentBuilder.from(this)
.pick()
.file()
.mimeType(""File Mime Type)
.createIntentHandler(this)
.startActivityForResult(new ActivityResultCallback() {
@Override
public void onActivityResult(int resultCode, @Nullable Intent data) {
// Handle result
}
});
You can use your owner MimeType String or pick it from omegaintentbuilder.types.MimeTypes;