mirror of https://github.com/kivy/pyjnius.git
Update docs/source/android.rst
This commit is contained in:
parent
61088ab5e6
commit
e572743dbf
|
@ -17,7 +17,7 @@ The `DisplayMetrics
|
|||
from jnius.reflect import autoclass
|
||||
DisplayMetrics = autoclass('android.util.DisplayMetrics')
|
||||
metrics = DisplayMetrics()
|
||||
print 'DPI', metrics.densityDpi
|
||||
print 'DPI', metrics.getDeviceDensity()
|
||||
|
||||
|
||||
Recording an audio file
|
||||
|
|
Loading…
Reference in New Issue