You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some examples are concerning class 'android.util.DisplayMetrics', some are concerning class 'org.renpy.android.Hardware' and NO docs/examples about both classes and how to use properties from, e.g. DisplayMetrics.
And the reason of all this hell is damn simple - Kivy doesn't want to transfer display parameters from graphics library to user...
The text was updated successfully, but these errors were encountered:
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
(Just a general life tip: avoid ascribing negative motivations to people on the Internet without strong evidence - especially when you want help from developers giving you free tools.)
I'm trying to detect screen resolution in Kivy for Android:
from kivy.utils import platform
if platform == 'android':
from jnius import autoclass
DisplayMetrics = autoclass('android.util.DisplayMetrics')
metrics = DisplayMetrics()
Height_of_screen = metrics.heightPixels
Width_of_screen = metrics.widthPixels
print("Height = "+ str(Height_of_screen))
print("Width = " + str(Width_of_screen))
Both height and width = 0 in logcat.txt.
Some examples are concerning class 'android.util.DisplayMetrics', some are concerning class 'org.renpy.android.Hardware' and NO docs/examples about both classes and how to use properties from, e.g. DisplayMetrics.
And the reason of all this hell is damn simple - Kivy doesn't want to transfer display parameters from graphics library to user...
The text was updated successfully, but these errors were encountered: