恰好Android应用程序什么时候一个电话中断应用程序 [英] What happens to android app when a phone call interrupts the app
本文介绍了恰好Android应用程序什么时候一个电话中断应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我工作的一个应用程序,并在我的活动之一我显示progressdialog。我设法它,以便它在旋转显示正常,而我认为这会处理电话呼叫的情况下也一样,但是当我用一个电话测试它的对话框消失。那么究竟是什么电话打尽到应用程序,以及如何为应用程序生命周期的一部分吗?
I am working on an app and in one of my activities I display a progressdialog. I have managed it so that it displays correctly during rotations, and I thought that would handle the case of a phone call too, but when I test it with a phone call the dialog goes away. So what exactly does the phone call do to the application and how is a part of the application lifecycle?
感谢
推荐答案
在onPause和的onStop被称为,的onDestroy可称为但是你不能依赖它。
onPause and onStop are called, onDestroy may be called but you can't rely on it.
这篇关于恰好Android应用程序什么时候一个电话中断应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文