# Can't rotate meeting programmatically

**URL:** <https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207>\
**Category:** Meeting SDK\
**Created:** [March 9, 2021, 9:31am UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207 "2021-03-09T09:31:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaddenBrain](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MaddenBrain](https://devforum.zoom.us/u/MaddenBrain)\
**Post date:** [March 9, 2021, 9:31am UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/1 "2021-03-09T09:31:46Z")

</div>

**Description**  
We have implemented zoom SDK. And now we have a feature request - to rotate the screen with a button. The problem is - Zoom’s `ConfActivityNormal` we extended from has overridden `onConfigurationChanged` function. And then we are trying to execute the `setRequestedOrientation` function - we have no configuration change at all in most cases.

**Which Client Mobile SDK version?**  
v4.6.21666.0429

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Add button to zoom sample with `setRequestedOrientation` call.
2. Try to change orientation by pressing the button.
3. Orientation change does not work in most cases.

**Smartphone (please complete the following information):**

- Google pixel 3a API 30
- Xiaomi mi4c API 25

---

<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:** [March 9, 2021, 5:59pm UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/2 "2021-03-09T17:59:04Z")

</div>

Hi @MaddenBrain, thanks for using the dev forum.

To override the Activity, you should have your class extend the `MeetingActivity` class. Additionally, you will need to add the following resource to your `config.xml` file: `<string name="zm_config_conf_activity">com.example.basicdemoapp.MyMeetingActivity</string>`.

Thanks!

---

<div class="post-metadata">

**Author:** ![MaddenBrain](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MaddenBrain](https://devforum.zoom.us/u/MaddenBrain)\
**Post date:** [March 18, 2021, 4:47am UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/3 "2021-03-18T04:47:49Z")

</div>

Already done this. Still have issue.

---

<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:** [March 18, 2021, 4:50pm UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/4 "2021-03-18T16:50:24Z")

</div>

Hi @MaddenBrain,

At what point are you calling `setRequestedOrientation`? If it is called too early, the SDK may reset it, resulting it the appearance of your call having no effect.

Thanks!

---

<div class="post-metadata">

**Author:** ![MaddenBrain](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MaddenBrain](https://devforum.zoom.us/u/MaddenBrain)\
**Post date:** [March 21, 2021, 2:02am UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/5 "2021-03-21T02:02:47Z")

</div>

It was called with UI button by user. Not too early, definitely. Even after a minute in a meeting it is not working.

---

<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:** [March 22, 2021, 5:09pm UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/6 "2021-03-22T17:09:26Z")

</div>

Hi @MaddenBrain,

Thanks for confirming. Can you please try updating to the latest SDK version and letting me know if you are still seeing this behavior?

Thanks!

---

<div class="post-metadata">

**Author:** ![MaddenBrain](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MaddenBrain](https://devforum.zoom.us/u/MaddenBrain)\
**Post date:** [March 27, 2021, 12:27am UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/7 "2021-03-27T00:27:48Z")

</div>

Unfortunately latest SDK version have too much UX changes, and have been declined by our QA team. We will be able to do it in future releases. And I will write in this thread after this.

---

<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:** [March 29, 2021, 5:32pm UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/8 "2021-03-29T17:32:56Z")

</div>

Hi @MaddenBrain,

That is absolutely understandable. It appears that this behavior has changed at some point between the version you are using and the most recent version, so it will be significantly easier to handle setting the orientation on newer versions of the SDK. Please let me know if you experience any issues after you are able to upgrade. 🙂

Thanks!

---

<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:** [April 29, 2021, 3:33am UTC](https://devforum.zoom.us/t/cant-rotate-meeting-programmatically/45207/9 "2021-04-29T03:33:02Z")

</div>

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