As part of Qoppa’s Android toolkit, there is also a class included called QPDFNotesView that extends an Android View. This class can be used within your application to show PDF documents and also provides annotation tools, similar to our qPDF Notes app.

Here is sample code using Qoppa’s qPDFToolkit to display and annotate a PDF in Android using Fragment.

package com.qoppa.samples.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.qoppa.notes.QPDFNotesView;
import com.qoppa.samples.viewer.R;
 * A placeholder fragment containing a simple view.
public class ViewerActivityFragment extends Fragment {
    public ViewerActivityFragment() {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
//        return inflater.inflate(R.layout.fragment_viewer, container, false);
        super.onCreateView(inflater, container, savedInstanceState);
        QPDFNotesView viewer = new QPDFNotesView(getActivity());
        return viewer;