---
title: "Which activity lifecycle method gets called whenever a dialog opens on screen?"  
description: "Which activity lifecycle method gets called whenever a dialog opens on screen?"  
author: "Hemant Patel"  
published: 2018-01-22  
canonical: https://answers.mindstick.com/qa/33378/which-activity-lifecycle-method-gets-called-whenever-a-dialog-opens-on-screen  
category: "technology"  
tags: ["android"]  
reading_time: 1 minute  

---

# Which activity lifecycle method gets called whenever a dialog opens on screen?

Which [activity lifecycle](https://answers.mindstick.com/qa/33376/what-happens-to-the-activity-lifecycle-whenever-a-user-is-browsing-your-application-and-suddenly-a-call-comes) [method](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business) gets called whenever a [dialog](https://www.mindstick.com/forum/500/print-dialog-using-c-sharp) [opens](https://www.mindstick.com/news/2570/china-s-new-space-station-opens-for-business-in-an-increasingly-competitive-era-of-space-activity) on [screen](https://www.mindstick.com/blog/53499/top-5-big-screen-tvs-for-the-best-tv-shows-of-2019)?

## Answers

### Answer by Prateek sharma

Whenever a **dialog** opens on your application the [activity](https://yourviews.mindstick.com/view/80911/newspaper-reading-turning-into-a-withering-activity) calls the **onPause()** method. This ensures that user is not doing anything with previous activity.


---

Original Source: https://answers.mindstick.com/qa/33378/which-activity-lifecycle-method-gets-called-whenever-a-dialog-opens-on-screen

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
