If you do not already have an existing application, create a new Visual Studio Xamarin.Android
project with Single View App
.
DocumentActivity
, we will need to add the Android permissions listed in this table. However if you would like to disable certain features and customize your document viewer, you should leave out unnecessary permissions.Please note that from Android 6.0 (API 23) and up, applications need to request storage permission at runtime before accessing any files on device.
largeHeap
and usesClearTextTraffic
:<meta-data>
tag containing a reference to your license key in the AndroidManifest.xml
file. Also, declare DocumentActivity
in the same file. The final AndroidManifest.xml
file should look something like this:Please follow the latest Android best practices and guidelines outlined here
OnCreate
method in MainActivity.cs
:Note that using the cache is a temporary solution and you should request runtime permissions for external storage.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales