Where should we initialize the PDFNet library?

44 views
Skip to first unread message

Hossein Khatoonabadi

unread,
Sep 28, 2016, 7:37:08 PM9/28/16
to pdfne...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages