Thankyou for your quick response. I'm upgrading from :
* @author Radaee
* @version 1.1
(from the global.java file)
As I'm not the original developer, and sadly the project documentation is not very helpfull, i cant be certain how much we modified your code. Here I'm assuming by "modifying classes from your framework" means we've modified any code on the ViewLib project. I'm going to check wheter we did modify any code on ViewLib project by comparing the git branches history.
To get to this point, what i did was just create new branch from our latest git code, and replace the code on ViewLib using version 3.11 and then put the professional licence information on Global.java.. hoping that it all will work out of the box. Apparently that is not the case here.
I've also traced the code to find where this method RenderPrePare is called, apparently the chronolgy (from logcat) was this :
- The app call private boolean openDocument(Bundle savedInstanceState, String docPath)
- <here we do some decrypt method to get the correct password (pass) to open the encrypted pdf>
- Then it goes to : int ret = m_doc.Open(docPath, pass);
- Because ret == 0 (success) we go to this code :
- m_vPDF = new ReaderController(this) where reader controller is : public class ReaderController extends View implements PDFView.PDFViewListener
- and then we define some @Override
- the one method where the Fatal Exception occur was @Overide : public void OnPDFPageDisplayed(Canvas canvas, PDFVPage vpage)
- where because we detect that the pdf isFirstOpen(had no bookmark), we call : m_vPDF.goToPageIndex(lastIndex); where lastIndex == -1
- then the Fatal Exception No virtual method RenderPrePare happens.
Please help us on this problem. Do you have any suggestion on what to do?
Thanks.