Skip to content

Instantly share code, notes, and snippets.

@asimmon
Last active November 20, 2015 15:07
Show Gist options
  • Save asimmon/679206c0e83cb31c075c to your computer and use it in GitHub Desktop.
Save asimmon/679206c0e83cb31c075c to your computer and use it in GitHub Desktop.
Using the MuPDF viewer included in the MuPDF Xamarin Android library
var uri = Uri.Parse("/mnt/sdcard/some.pdf");
var intent = new Intent(this, typeof (MuPDFActivity));
intent.SetAction(Intent.ActionView);
intent.SetData(uri);
StartActivity(intent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment