Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported android app crashed when trying to split screen #17654

Closed
xsellier opened this issue Mar 20, 2018 · 2 comments · Fixed by #17670
Closed

Exported android app crashed when trying to split screen #17654

xsellier opened this issue Mar 20, 2018 · 2 comments · Fixed by #17670

Comments

@xsellier
Copy link
Contributor

xsellier commented Mar 20, 2018

Godot version:
(2.1 branch) 940bab2

OS/device including version:
Nokia 6 -Android Oreo (tested on 2 differents nokia 6)

Issue description:
When splitting the screen, it crashes

Steps to reproduce:

  1. Create an empty project
  2. Export it to your phone
  3. Launch it
  4. Use the split screen feature of your phone (android 8.0 native feature)

Logs
https://pastebin.com/haVmHQcZ

@freemanfromgodotengine
Copy link

I don't have an access to Android 8.0, but on my 6.0.1 split screen works only with the apps that support it. Those apps have a special two rectangles icon on the right side of the title bar. Other apps don't have it and can't be used in split mode. Is it not the case with the "default" apps created with Godot? By default I mean default manifest file and other android related files.
Or is Android 8 supporting all apps in the split mode no matter what?

Anyway, afaik (and I'm far from being a programmer), even when writing the app with java for android or kotlin, you need to set more than a few things like android:resizeableActivity, android:supportsPictureInPicture in the manifest file and also some layout attributes of the activity like android:minHeight, android:minWidth, and few other that control the way the app behaves when in multiwindow mode. Have you check those things?

@xsellier
Copy link
Contributor Author

xsellier commented Mar 21, 2018

@freemanfromgodotengine Thank you for this clue. I checked this page. Meaning by tomorrow I will try to export my app with android:resizeableActivity="false" in the manifest. I will update this ticket, and create a PR if it works properly !

EDIT
I tested, and it works. PR incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants