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

Application stuck in portrait mode #820

Closed
MDelaney7700 opened this issue Feb 7, 2019 · 3 comments
Closed

Application stuck in portrait mode #820

MDelaney7700 opened this issue Feb 7, 2019 · 3 comments

Comments

@MDelaney7700
Copy link

Versions

  • Python: 3.7
  • OS: Ubuntu 18.04
  • Buildozer: 0.39

Description

My android application appears stuck in portrait mode even when orientation is set to either "all" or "sensorLandscape". It actually goes to landscape when set to "landscape", but otherwise to goes to portrait and remains there. So far I've tried deleting my application and global .buildozer directories and rebuilding everything, but the issue persisted. Strangely, when the application is loading initially, the loading screen is able to change orientation, but when the app loads, it goes to portrait.

buildozer.spec

Command:

buildozer android debug deploy run

Spec file:

title = Dss Time
package.name = dssapp
package.domain = com.delaneyware
source.dir = .
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python3,kivy,requests,android,dateutil,certifi
orientation = all
osx.python_version = 3
osx.kivy_version = 1.10.1
fullscreen = 0
android.permissions = INTERNET
android.arch = armeabi-v7a
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0
log_level = 2
warn_on_root = 1
@inclement
Copy link
Member

The all option isn't currently supported in buildozer/p4a master, because we updated to SDL2.0.9 but that doesn't have a setting for it. We'll probably fix this quite soon. Possibly you can set it from your apk by calling the Java API for it instead.

@inclement
Copy link
Member

Fixed by @opacam in kivy/kivy#6138, but we'll have to wait a short time to make p4a use this updated Kivy version as Kivy master needs an update to the sdl2_image used by p4a.

@AndreMiras
Copy link
Member

Merged in p4a master kivy/python-for-android#1692
thanks for the report

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

3 participants