SAF operations seem to use startActivityForResult
to trigger the UI picker. This makes sense since when the user selects a document on the picker, the calling activity receives the uri via onActivityResult()
.
The problem is that I need to use SAF from a Service
and startActivityForResult
is Activity
-specific. Is there another way to interact with SAF, one that can be used from an android service?