Skip to content

Android usage issue #520

@XilinJia

Description

@XilinJia

Very nice library! I started to migrate my Android app to it.

val url = file:///storage/emulated/0/Android/data/com.sdfs.dghdh/files/media/Afrique%20economie/Crise%20de%20la%20dette%20africaine%20Pour%20briser%20le%20cycle%20il%20faut%20investir.1772212976491.mp3

I first tried it with:

val file = PlatformFile(url)
file.exists() is false

then I tried:
val file = PlatformFile(url.toUri())
file.exists() is false

then I tried:
val file = PlatformFile(url.toUri().path?:"")
file.exists() is true

could you please clarify what's happening? Would it be better to get the first way working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextScheduled for the next version

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions