Skip to content

Android: unable to resolve content:// URL #8

@robert-virkus

Description

@robert-virkus

Hi, I try to open content:// paths on Android that I receive as a share target.

With an input of content://com.android.providers.downloads.documents/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2F1607722645567.jpg I get the following error:

 E/MethodChannel#flutter_absolute_path(21745): Failed to handle method call
E/MethodChannel#flutter_absolute_path(21745): java.lang.NumberFormatException: For input string: "raw:/storage/emulated/0/Download/1607722645567.jpg"
E/MethodChannel#flutter_absolute_path(21745): 	at java.lang.Long.parseLong(Long.java:594)
E/MethodChannel#flutter_absolute_path(21745): 	at java.lang.Long.valueOf(Long.java:808)
E/MethodChannel#flutter_absolute_path(21745): 	at com.kasem.flutter_absolute_path.FileDirectory.getAbsolutePath(FileDirectory.kt:47)
E/MethodChannel#flutter_absolute_path(21745): 	at com.kasem.flutter_absolute_path.FlutterAbsolutePathPlugin.onMethodCall(FlutterAbsolutePathPlugin.kt:42)
E/MethodChannel#flutter_absolute_path(21745): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#flutter_absolute_path(21745): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter_absolute_path(21745): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions