Xamarin.Forms - Open file with default app
问题 I need to open a file from storage. I used Launcher.OpenAsync() , but it always tries to open the file in PDF reader. Is there any other way to open a file with default app on Android? This is the code I have already tried. private void OpenDocument(string filePath) { var localFile = "file://" + filePath; Launcher.OpenAsync(localFile); } 回答1: string path = "yuor uri bla-bla-bla"; await Launcher.OpenAsync(new OpenFileRequest { File = new ReadOnlyFile(path) }); 回答2: //Dictionary with extensions