Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Open PDF in Android default PDF reader

$
0
0

Hi,

I'm searching a way to open a PDF (stored in local) in the Android default PDF reader in Xamarin.Forms.
I'm using a webview for iOS but WebViews on Android cannot open a local PDF.

var browser = new WebView ();

if (Device.OS == TargetPlatform.iOS) {
    browser.Source = @App.DocumentUrl;
} else if (Device.OS == TargetPlatform.Android) {
    Device.OpenUri (new Uri (@App.DocumentUrl)); // Don't work
}

Content = browser;

Did someone have a solution ?

Thanks.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>