Hi!
Is there a way to get immersive mode in DE2? Looked around the forum and it seems to have been fixed in the old one but I can’t find an easy solution in DE2. Tried to change the AndroidManifest.xml but got build error.
Hi!
Is there a way to get immersive mode in DE2? Looked around the forum and it seems to have been fixed in the old one but I can’t find an easy solution in DE2. Tried to change the AndroidManifest.xml but got build error.
You should be able to manually edit the game.project file and set immersive_mode = 1 in the Android section. @Erik_Angelin, it should be a one-liner to add this missing option to the game.project editor in Editor 2?
Im pretty new but you mean to open the “.PROJECTC-file” with something like Notepad and add it after the “Manifest =”?
Exactly, open game.project in your text editor of choice (or right click and Open as Text) and somewhere in the android section add immersive_mode = 1. Something like this:
[android]
package = com.britzl.foobar
immersive_mode = 1
version_code = 1234
And this is to the project file and not the android build?
Yes, game.project. You should not have to modify the Android manifest file. This will be done for you, unless you are using a custom manifest file?
It doesn’t seem to fix it. Should the Android manifest file be transfered to the mobile together with the APK?
Defold will bundle a complete APK for you, with a manifest file that is appropriate for your project. Are you specifying your own manifest file in game.project? You shouldn’t have to really unless you have some special requirements.
Does it work with the same project in Editor 1?
Don’t know but can check. The game.project file however removes the “[Android] immersive_mode = 1” after building the Android Bundle though.
The Android section was non existant before I added it.
Ah, I see. Ok, so then it actually will not work to add it manually. Sorry about that. We need to wait for @Erik_Angelin, @mats.gisselson, @Ragnar_Dahlen and @ragnar.svensson to add it.
No worries. Thanks for the help anyways!
Added issue: https://github.com/defold/editor2-issues/issues/988