Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

remove the AvailMem

More
10 years 8 months ago #10033 by ankur123987
Hi Radaeepdf team,

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

please reply me as soon as possible
More
10 years 8 months ago #10034 by support
Replied by support on topic remove the AvailMem
You should set
Code:
Global.debug_mode = false;
in Global.jaba
More
10 years 8 months ago #10036 by ankur123987
Replied by ankur123987 on topic remove the AvailMem
I am sorry to say but there is no static boolean variable "debug_mode" in Global.java file of ViewLib library . Please help
More
10 years 8 months ago #10037 by support
Replied by support on topic remove the AvailMem
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;".
More
10 years 8 months ago #10038 by Davide
Replied by Davide on topic remove the AvailMem
Hi,
you are using an old version of the library, so you have to comment the following code from PDFReader class:
Code:
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.
More
10 years 8 months ago #10042 by ankur123987
Replied by ankur123987 on topic remove the AvailMem
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
Time to create page: 0.430 seconds
Powered by Kunena Forum