We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using p4a (master) installed 2/6/2019 (same with installed 2/2/2019) this uses SDL 2.0.9
App is stuck in portrait mode regardless of p4a --orientation Example uses --orientation sensor
p4a --orientation
--orientation sensor
Cause seems to be "LandscapeLeft LandscapeRight" (see log file below) I thought these were iOS things, so perhaps some code overflow?
"LandscapeLeft LandscapeRight"
main.py:
from kivy.app import App from kivy.uix.label import Label from kivy.graphics import Color, Rectangle from kivy.core.window import Window class Demo(App): def set_background_color(self): with self.label.canvas.before: Color(0.5, 0.0, 0.5) Rectangle(size=Window.size) def _resize_handler(self,obj,size): self.set_background_color() def build(self): Window.bind(size=self._resize_handler) self.label = Label(text = 'Greetings Earthlings') self.set_background_color() return self.label if __name__ == '__main__': Demo().run()
Command:
p4a apk
Spec file: .p4a
--dist_name=ex --private . --package=com.example.ex --name Ex --requirements=python3,kivy --arch=armeabi-v7a --orientation sensor --sdk_dir /home/bobf/androidtools/sdk --ndk_dir /home/bobf/androidtools/android-ndk-r17c --android_api 28 --ndk-api 21 --version 0.0.0
logcat:
02-06 14:56:09.498 31440 31468 I python : [WARNING] Could not satisfy Android orientation "LandscapeLeft LandscapeRight", only {portrait,landscape} are currently supported. Defaulting to portrait 02-06 14:56:09.502 31440 31468 E libEGL : validate_display:92 error 3008 (EGL_BAD_DISPLAY) 02-06 14:56:09.502 31440 31468 V SDL : setOrientation() orientation=1 width=1080 height=2160 resizable=true hint=Portrait 02-06 14:56:09.560 31440 31440 V SDL : surfaceChanged() 02-06 14:56:09.560 31440 31440 V SDL : pixel format RGB_565 02-06 14:56:09.560 31440 31440 V SDL : Window size: 1080x2160 02-06 14:56:09.560 31440 31440 V SDL : Device size: 1080x2160
The text was updated successfully, but these errors were encountered:
Also "dup" of kivy/buildozer#820 To make it work you need to pin your kivy requirement as kivy==775cd9e until #1692 is merged
kivy==775cd9e
Sorry, something went wrong.
Thanks
Successfully merging a pull request may close this issue.
Versions
Description
using p4a (master) installed 2/6/2019 (same with installed 2/2/2019)
this uses SDL 2.0.9
App is stuck in portrait mode regardless of
p4a --orientation
Example uses
--orientation sensor
Cause seems to be
"LandscapeLeft LandscapeRight"
(see log file below)I thought these were iOS things, so perhaps some code overflow?
main.py:
buildozer.spec
Command:
Spec file:
.p4a
Logs
logcat:
The text was updated successfully, but these errors were encountered: