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

Return screen orientation based on device natural rotation. #202

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Tungsteno74
Copy link

@Tungsteno74 Tungsteno74 commented May 3, 2016

This addition come from this issue thread: kivy/kivy#4249.

It return both (normal and reverse) mode based on natural rotation of device. It should be portrait for smartphones and landscape for tablets.
I used the ActivityInfo orientation constants as output (for compatibility with others class methods) but i'm not sure if is the right way (i'm newbie with Android and java programming).

I tested it on a smartphone with Android 4.4. Should be tested on a tablet.

Please review it.
Thank you guys!

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

Successfully merging this pull request may close these issues.

2 participants