Some test text!

Discord Logo

Chat with us

PDFTron is now Apryse, learn more here.

Android / Guides / Permissions

Platform


PDFTron is now Apryse, learn more here.

Android permissions

Some features in Apryse's Android SDK require certain Android permissions, the most prominent one being storage permission for accessing documents stored locally on the device. A summary of Apryse's features and their required permission are shown below. If you need any of the specified features listed below, you will need to add the appropriate Android permissions.

Android permissions list

FeatureRelevant permission
Accessing documents in local storage, including:
  • Reading documents in local storage
  • Writing to PDF files (including annotation creation) in local storage
  • Creating PDF files in local storage
android.permission.WRITE_EXTERNAL_STORAGE
  • Opening a PDF from a URL
  • HTML to PDF conversion
  • Realtime collaboration
android.permission.INTERNET
  • Creating sound annotations
android.permission.RECORD_AUDIO
Storage permission
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.

Add permissions

You can add permissions to your Android app by including the <uses-permission> tag for the specified permission in your AndroidManifest.xml file. You can learn more about Android permissions in the Android documentation.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.pdftron.myapplication"
    ...>

    <!-- Permissions are added in the manifest tag -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />

    ...
</manifest>

Get the answers you need: Support