Android应用程式自动重设至最小化 [英] Android app auto reset on minimize

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

问题描述

我们设计了一个混合应用程序,它有点笨重(9 MB).问题在于,有时最小化此应用程序(主页按钮)会使应用程序在后台重置,即丢失其应用程序缓存,并从启动屏幕重新加载应用程序.最小化之后,我们使用了平板电脑(Galaxy 800)中的其他应用程序.

We have designed an hybrid app which is a bit heavy (9 MB). Problem is that at times, minimizing this app (home button) makes the app reset in background i.e. its app cache is lost and app reloads from splash screen. After minimizing we worked with other apps in tablet (Galaxy 800).

仅当我们尝试从启动器中的图标启动应用程序时,我们才看到此问题.当我们尝试从最小化列表(最近的应用程序按钮)启动它时,没有发生此问题.

We saw this problem only if we tried to launch app from the icon in launcher. This problem did not happen when we tried to launch it from the minimized list(recent apps button).

此问题并非特定于选项卡.这也发生在银河3和Droid Razr中.

This problem is not specific to the tab. It also happened in Galaxy 3 and Droid Razr also.

有指导吗?

推荐答案

问题是,有时,最小化此应用程序(主页按钮)会使应用程序在后台重置,即丢失其应用程序缓存,并从启动屏幕重新加载应用程序.

Problem is that at times, minimizing this app (home button) makes the app reset in background i.e. its app cache is lost and app reloads from splash screen.

这完全正常.

计算机,电话和平板电脑没有无限的RAM. Android解决此问题的方法是在用户离开之后将您的进程保留一段时间,但最终Android会终止您的进程以为其他应用程序及其进程释放RAM.您可以在文档中了解更多信息.

Computers, phones, and tablets do not have infinite RAM. Android's approach to this problem is to keep your process around for a while after the user has left it, but eventually Android will terminate your process to free up RAM for other applications and their processes. You can read more about the Android process model in the documentation.

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

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