As file-transfer packages might be received out of order, a seekable stream (random file access) is needed.
But: Android APIs don't provide random file access with MediaStore.
Manually creating a file in the downloads folder might result in an UnauthorizedAccessException.
Solution
Insert entry intro MediaStore (visible in files app) and use the FileDescriptor from OpenFileDescriptor to create a seekabe FileStream (dotnet).
Issue
As file-transfer packages might be received out of order, a seekable stream (random file access) is needed. But: Android APIs don't provide random file access with
MediaStore
. Manually creating a file in the downloads folder might result in anUnauthorizedAccessException
.Solution
Insert entry intro
MediaStore
(visible in files app) and use theFileDescriptor
fromOpenFileDescriptor
to create a seekabeFileStream
(dotnet).Fixes #125
Fixes #124