Knowledge Base - Remove "Available memory" debug message

To remove the debug message

 

If you are using version above 3.4: you should set the following variable in Global.default_config():

debug_mode = false;

If using version before 3.4, you need to remove the following part:

 

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);

 

 

If you are using the PDFReader project, you need to remove it from PDFReader.onDraw(Canvas canvas).

If you are using the RDPDFReader project, you need to remove it from PDFLayoutView.onDraw(Canvas canvas).

Applies To

RadaeePDF SDK for Android

Details

Created : 2015-04-02 10:00:13, Last Modified : 2016-07-28 09:15:36