-
Notifications
You must be signed in to change notification settings - Fork 13
Labels
bugSomething isn't workingSomething isn't working
Description
Files obtained via Android file picker have a Path URI of the form "content://com.android.providers.downloads.documents/document/..."
These don't display when binding this local URI to a <Image asyncImageLoader:ImageLoader.Source="{Binding ImagePath}"> or <asyncImageLoader:AdvancedImage Source="{Binding ImagePath}"/>
var topLevel = TopLevel.GetTopLevel(this)!;
var files = await topLevel.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
{
Title = "Select media",
});
if (files.Count > 0) vm.ImagePath = files[0].Path.AbsoluteUri;
The same code works fine on Desktop target (path is "file://...")
Example app attached:
AvaloniaApplicationImageAndroid.zip
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working