如何处理致命的异常在系统进程:ActivityManager和java.lang.OutOfMemoryError:内存耗尽] [英] how to handle FATAL EXCEPTION IN SYSTEM PROCESS: ActivityManager and java.lang.OutOfMemoryError: [memory exhausted]

查看:288
本文介绍了如何处理致命的异常在系统进程:ActivityManager和java.lang.OutOfMemoryError:内存耗尽]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个设备(三​​星Galaxy配合)。当我打开设备我不能去到主屏幕,它只是不断加载。当我连接设备,看到的logcat,我logcat的错误显示 -

I have a device (samsung galaxy fit). When I turn on the device I can't go to the Homescreen and it just keeps loading. When i connect the device and see the logcat, my logcat error showed -

"FATAL EXCEPTION IN SYSTEM PROCESS: ActivityManager and java.lang.OutOfMemoryError: [memory exhausted]"

该如何处理呢?

推荐答案

有一些方法来解决内存不足的错误

there are some way to solve out of memory error

第一循环位图这样

bmp.recycle();
bmp = null;

第二次使用垃圾收集

second using the garbage collector

System.runFinalization();
Runtime.getRuntime().gc();
System.gc();

但如果你发布你的一些code的这里,所以我和其他人可以帮助它会更好你更:)

but it'll be better if you post some of your code here so I and the other people can help you more :)

这篇关于如何处理致命的异常在系统进程:ActivityManager和java.lang.OutOfMemoryError:内存耗尽]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆