RadaeePDF.com :: Topic: AvialMem:... (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: AvialMem:...

AvialMem:... 3 years 4 months ago #6231

  • johnkulova
  • johnkulova's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi,

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

Thanks
The administrator has disabled public write access.

AvialMem:... 3 years 4 months ago #6232

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 40
  • Karma: 18
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?
The administrator has disabled public write access.

AvialMem:... 2 years 6 months ago #8699

  • rc
  • rc's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 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.
The administrator has disabled public write access.

AvialMem:... 2 years 6 months ago #8703

  • support
  • support's Avatar
  • OFFLINE
  • Administrator
  • Posts: 499
  • Thank you received: 40
  • Karma: 6
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.
The administrator has disabled public write access.
Powered by Kunena Forum