Android PDFViewPager memory issues - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Android PDFViewPager memory issues

Android PDFViewPager memory issues 1 year 3 months ago #12677

  • dancur
  • dancur's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
In our application, we are using the PDFViewPager class and are seeing some memory issues. We followed your design pattern from PDFPagerAct, but the memory usage in the Native memory stack grows every time you swipe to a new page. What settings need to be configured to make sure that memory is not leaking via JNI libraries?

In addition, several lines are commented out in the PDFViewPager class. Of particular interest is VPage's SetConfigure method. How is this method intended to be used? What effect does it have? Finally, how are the values CLIP_W and CLIP_H intended to be used, as they aren't defined anywhere else in the class. Thank you.

Daniel
The Washington Post

Please Log in or Create an account to join the conversation.

Android PDFViewPager memory issues 1 year 3 months ago #12680

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
You need to make sure that while navigating you are closing the unneeded pages (i.e. PDFPageAdapter.destroyItem is called) and setting ViewPager.setOffscreenPageLimit according to your needs.

Lines commented, belongs to non-implemented listeners, test codes or old codes..
VPage's SetConfigure --> old method that is replaced now with VPageRenderResult and blocks management. (zoom handling)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum