# Switch to immersive mode on run time

**URL:** <https://forum.magicleap.cloud/t/switch-to-immersive-mode-on-run-time/2195>\
**Category:** Native Development\
**Tags:** development\
**Created:** [July 12, 2023, 11:28am UTC](https://forum.magicleap.cloud/t/switch-to-immersive-mode-on-run-time/2195 "2023-07-12T11:28:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rp1](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Post date:** [July 12, 2023, 11:28am UTC](https://forum.magicleap.cloud/t/switch-to-immersive-mode-on-run-time/2195/1 "2023-07-12T11:28:45Z")

</div>

Dear Magic Leap Team,

Is it possible to switch to immersive mode at run time?  
For example, starting as "normal" Android app, then using a button to start the immersive mode.

Flowing the Magic Leap documentation [Modifying APK for AR | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/native/modifying-apk) this only allows having an Activity configured for immersive mode by adding this line:  
`<meta-data android:name="com.magicleap.augmented_reality_only" android:value="true" />` to AndroidManifest.xml for that Activity.

What we are doing right now, starting a MainActivity which is a normal Android Activity, then from that starting a MagicLeapActivity, which is configured as immersive.

It would be great to just have one Activity switching on runtime to immersive mode.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![mrushton](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mrushton](https://forum.magicleap.cloud/u/mrushton)\
**Post date:** [July 12, 2023, 1:25pm UTC](https://forum.magicleap.cloud/t/switch-to-immersive-mode-on-run-time/2195/2 "2023-07-12T13:25:13Z")

</div>

It is not currently possible to have one activity that is both a "standard Android Activity" and also a Native Application running in Magic Leap's AR runtime. This is primarily as those two have a different surface area for sending composition. Though there are no plans to change this in the short term I have noted this as a possible improvement for the platform team to investigate longer term.
