Android应用程序自动关闭 [英] Android app closing automatically

查看:227
本文介绍了Android应用程序自动关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在设备上(4.2.2)的Andr​​oid应用程序。
该设备将永远不会为省电模式。
如果我离开应用程序打开的时间超过30分钟,应用程序将自动关闭。
而且没有例外日志中找到。
这是默认的Andr​​oid行为?
如果可能的话,请分享一下这个问题的任何链接。

I have an android app installed on device (4.2.2). The device will never go to power save mode. If i leave the app open for more than 30 minutes, the app closes automatically. And no exception found in the log. Is this default android behaviour? If possible please share any links about this issue.

推荐答案

如果你有这样的行为,仅仅只有4.x的,但在4.x版不,尝试在清单转真largeHeap。你必须把它放在apllications标记属性。我希望这会有所帮助。

If you have this behaviour just only 4.x, but under 4.x don't, try in Manifest to turn true largeHeap. You have to turn it on in apllications tag attribute. I hope it will help.

这篇关于Android应用程序自动关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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