# Check if meeting activity is in focus

**URL:** <https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104>\
**Category:** Android\
**Created:** [June 24, 2021, 5:50pm UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104 "2021-06-24T17:50:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejas-mane](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tejas-mane/32/28104_2.png) [@tejas-mane](https://devforum.zoom.us/u/tejas-mane)\
**Post date:** [June 24, 2021, 5:50pm UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/1 "2021-06-24T17:50:31Z")

</div>

I want to record when users pause the meeting activity or minimize it. Is there any way to know when the meeting activity is in focus? Alternatively is there any way to record the join and leave time of a particular user using android SDK?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 24, 2021, 8:08pm UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/2 "2021-06-24T20:08:07Z")

</div>

Hi @tejas-mane, thanks for the post.

> I want to record when users pause the meeting activity or minimize it.

Can you please confirm whether you are using the default UI or have implemented a custom meeting UI?

> Alternatively is there any way to record the join and leave time of a particular user using android SDK?

One way of doing this would be to record the timestamp of the  
[`onMeetingUserJoin`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/InMeetingServiceListener.html#onMeetingUserJoin-java.util.List-) and [`onMeetingUserLeave`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/InMeetingServiceListener.html#onMeetingUserLeave-java.util.List-) callbacks.

Thanks!

---

<div class="post-metadata">

**Author:** ![tejas-mane](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tejas-mane/32/28104_2.png) [@tejas-mane](https://devforum.zoom.us/u/tejas-mane)\
**Post date:** [June 25, 2021, 5:43am UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/3 "2021-06-25T05:43:01Z")

</div>

Thanks. I am using default UI.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 25, 2021, 4:07pm UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/4 "2021-06-25T16:07:38Z")

</div>

Hi @tejas-mane,

Thanks for confirming. Please see this [support article](https://zoomdevelopersupport.zendesk.com/hc/en-us/articles/360056165831-How-to-Extend-the-MeetingActivity) on how to extend the `MeetingActivity`. After doing this, you will have access to the Activity lifecycle of the Activity used to display the meeting UI.

Thanks!

---

<div class="post-metadata">

**Author:** ![tejas-mane](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tejas-mane/32/28104_2.png) [@tejas-mane](https://devforum.zoom.us/u/tejas-mane)\
**Post date:** [June 25, 2021, 5:46pm UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/5 "2021-06-25T17:46:54Z")

</div>

Thanks. This is exactly what I was looking for.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 25, 2021, 9:40pm UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/6 "2021-06-25T21:40:51Z")

</div>

You’re welcome, glad I could help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 26, 2021, 7:41am UTC](https://devforum.zoom.us/t/check-if-meeting-activity-is-in-focus/53104/7 "2021-07-26T07:41:39Z")

</div>

Closed on July 26, 2021, 7:41am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
