Skip to content

python-for-android packages wrong manifest for ANDROIDAPI="19", doesn't include configChanges="...|screenSize" which leads to app crash on rotation #1342

@ghost

Description

python-for-android packages the wrong manifest for me for my specified ANDROIDAPI="19" version: the included AndroidManifest.xml specifies android:configChanges="keyboardHidden|orientation and missing "screenSize", which leads to app crash on rotation. When manually editing /usr/local/lib/python3.6/dist-packages/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml to take out the conditional and hardcoding "screenSize" into the android:configChanges=... value, then it works. So it seems something is bugged with how that template is being handled.

To reproduce, try a p4a build line with --requirements=python3crystax,pysdl2,sdl2 --orientation user --window and any simple SDL2 code, e.g. the one in that comment here: #1338 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions