Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

AvialMem:... 9 years 11 months ago #6231

  • johnkulova
  • johnkulova's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi,

There is an AvialMem text on the PDF. how do I get rid of it?

Thanks

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

AvialMem:... 9 years 11 months ago #6232

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Go to PDFReader.onDraw and remove/comment the following part:



ActivityManager mgr = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE);
ActivityManager.MemoryInfo info = new ActivityManager.MemoryInfo();
mgr.getMemoryInfo(info);
Paint paint = new Paint();
paint.setARGB(255, 255, 0, 0);
paint.setTextSize(30);
canvas.drawText( "AvialMem:" + info.availMem/(1024*1024) + " M", 20, 150, paint);

www.androidpdf.mobi/documents/faq : Development -> How to remove the 'available memory' text?

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

AvialMem:... 9 years 1 month ago #8699

  • rc
  • rc's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Why didn't you implement a simple option to disable this debug message?
It is insane to comment or manipulate in other way a library's code.

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

AvialMem:... 9 years 1 month ago #8703

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
You're right.
The demo project has been developed as a demo, not a pre-production application.
We're working on a new interface with a better UI and simpler way to integrate in third part apps.

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

  • Page:
  • 1
Powered by Kunena Forum