Where should we initialize the PDFNet library?


Where should I initialize the PDFNet library on Android?


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.