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

TOPIC:

remove the AvailMem 8 years 3 months ago #10033

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Hi Radaeepdf team,

I want to remove the text "AvailMem" from pdf viewer file.please help me.

please reply me as soon as possible

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

remove the AvailMem 8 years 3 months ago #10034

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
You should set
Global.debug_mode = false; 
in Global.jaba

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

remove the AvailMem 8 years 3 months ago #10036

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
I am sorry to say but there is no static boolean variable "debug_mode" in Global.java file of ViewLib library . Please help

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

remove the AvailMem 8 years 3 months ago #10037

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Look into ViewLib/pdf/adv/Global.java.
Line should be 303 (I'm looking into SDK 3.6.1).

Within AndroidStudio, try a global search for "public static boolean debug_mode = true;".

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

remove the AvailMem 8 years 3 months ago #10038

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you are using an old version of the library, so you have to comment the following code from PDFReader class:
ActivityManager mgr = (ActivityManager) getContext().getSystemService(Context.ACTIVITY_SERVICE);
            ActivityManager.MemoryInfo info = new ActivityManager.MemoryInfo();
            mgr.getMemoryInfo(info);
            m_info_paint.setARGB(255, 255, 0, 0);
            m_info_paint.setTextSize(30);
            canvas.drawText("AvialMem:" + info.availMem / (1024 * 1024) + " M", 20, 150, m_info_paint);

I suggest you to search "AvialMem" string in all the project and to comment the related part of code to be sure to delete it from everywhere.

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

remove the AvailMem 8 years 3 months ago #10042

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
i tried to import the ViewLib but i could not find the com.radaee.view packages in SDK 3.6.1. but in eclipse demo it was available i am not sure what was changes from 3.4 to 3.6 could you provide the latest library for eclipse version . android studio does not support ndk so i am doing it at eclipse . i got many errors while import the radaeepdf android studio project. any way i will try to make compatible library with eclipse thanks

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum