Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Guides

How to Run a Demo

ComPDF SDK for Android provides multiple demos in Java for developers to learn how to call the SDK on Android. You can find them in the "Examples" folder. In this guide, we take "PDFViewer" as an example to show how to run it on Android.

  1. Import the "Examples" project on Android Studio.

  2. In the toolbar, select "PDFViewer" from the run configurations drop-down menu.

  3. From the target device drop-down menu, select the device that you want to run "PDFViewer" on.

  4. Click Run.

If you don't have any devices configured, then you need to either connect a device via USB or create an AVD to use the Android Emulator.

2.3

Note: This is a demo project, presenting completed ComPDF SDK functions. The functions might be different based on the license you have purchased. Please check that the functions you choose work fine in this demo project.