Where should we initialize the PDFNet library?

Question:

Where should I initialize the PDFNet library on Android?

Answer:

It is necessary that PDFNet.initialize(Context, int, String) is called before any other PDFNet APIs, including inflating PDFViewCtrl in layout, that is before any setContentView(View) calls. We highly recommend you to initialize the PDFNet library in onCreate of the app’s Application class.