Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens to android app when a phone call interrupts the app?

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?

like image 717
user807624 Avatar asked Jun 23 '11 01:06

user807624


1 Answers

onPause and onStop are called, onDestroy may be called but you can't rely on it.

like image 98
Nathan Schwermann Avatar answered Nov 15 '22 10:11

Nathan Schwermann