在使用该水印功能时,低概率会出现内存溢出的问题,这个能解决下吗?
java.lang.OutOfMemoryError
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1165)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1115)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1065)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1026)
at com.watermark.androidwm_light.Watermark.createWatermarkText(Watermark.java:159)
at com.watermark.androidwm_light.Watermark.(Watermark.java:85)
at com.watermark.androidwm_light.WatermarkBuilder.getWatermark(WatermarkBuilder.java:250)
at com.csi.sec.utils.WaterMarkUtils.getWaterMarkBitmap(WaterMarkUtils.java:266)
at com.csi.sec.utils.WaterMarkUtils.getDefaultWaterMarkBitmap(WaterMarkUtils.java:164)
at com.csi.sec.workspace.meeting.activity.InviteesActivity.setWatermark(InviteesActivity.java:483)
at com.csi.sec.workspace.meeting.activity.InviteesActivity.access$1500(InviteesActivity.java:86)
at com.csi.sec.workspace.meeting.activity.InviteesActivity$4.onGlobalLayout(InviteesActivity.java:472)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1082)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3210)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2225)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9126)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:999)
at android.view.Choreographer.doCallbacks(Choreographer.java:797)
at android.view.Choreographer.doFrame(Choreographer.java:732)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:984)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
在使用该水印功能时,低概率会出现内存溢出的问题,这个能解决下吗? java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:1165) at android.graphics.Bitmap.createBitmap(Bitmap.java:1115) at android.graphics.Bitmap.createBitmap(Bitmap.java:1065) at android.graphics.Bitmap.createBitmap(Bitmap.java:1026) at com.watermark.androidwm_light.Watermark.createWatermarkText(Watermark.java:159) at com.watermark.androidwm_light.Watermark.(Watermark.java:85)
at com.watermark.androidwm_light.WatermarkBuilder.getWatermark(WatermarkBuilder.java:250)
at com.csi.sec.utils.WaterMarkUtils.getWaterMarkBitmap(WaterMarkUtils.java:266)
at com.csi.sec.utils.WaterMarkUtils.getDefaultWaterMarkBitmap(WaterMarkUtils.java:164)
at com.csi.sec.workspace.meeting.activity.InviteesActivity.setWatermark(InviteesActivity.java:483)
at com.csi.sec.workspace.meeting.activity.InviteesActivity.access$1500(InviteesActivity.java:86)
at com.csi.sec.workspace.meeting.activity.InviteesActivity$4.onGlobalLayout(InviteesActivity.java:472)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1082)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3210)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2225)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9126)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:999)
at android.view.Choreographer.doCallbacks(Choreographer.java:797)
at android.view.Choreographer.doFrame(Choreographer.java:732)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:984)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)