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

android app crash on screen rotation #379

Closed
sladinji opened this issue May 21, 2015 · 3 comments
Closed

android app crash on screen rotation #379

sladinji opened this issue May 21, 2015 · 3 comments

Comments

@sladinji
Copy link

This commit makes my app crash on screen rotation. In src/templates/AndroidManifest.tmpl.xml line 32 :

...{% if android_api >= 13 %}|screenSize{% endif %}"
...{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"

should be :
{% if args.sdk_version >= 13 %}|screenSize{% endif %}"

if we want to keep the same behavior. Otherwise, app with auto rotating screen will now crash on rotation if "android.minapi" in buildozer.spec is not set to at least 13.
...{% if args.sdk_version >= 13 %}|screenSize{% endif %}"

@denys-duchier
Copy link
Contributor

indeed setting android.minapi=13 fixes the issue for me.

@mrhubbs
Copy link

mrhubbs commented May 22, 2015

I've been having the same issue, and setting android.minapi=13 also fixed it for me.

I'm on Android 5.0.2.

@kived
Copy link
Contributor

kived commented May 26, 2015

This is fixed in #382.

@kived kived closed this as completed May 26, 2015
AndreMiras added a commit to AndreMiras/GuyPS that referenced this issue Dec 28, 2015
Android minimum API set to 13,
Fixes rotation crash,
refs kivy/python-for-android#379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants