Skip to content

Commit

Permalink
docfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Aug 16, 2012
1 parent 9307698 commit b6bc661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/android.rst
Expand Up @@ -14,7 +14,7 @@ Get the DPI
The `DisplayMetrics
<http://developer.android.com/reference/android/util/DisplayMetrics.html>`_ contain multiple field that can return lot of information about the device screen::

from pyjnius.reflect import autoclass
from jnius.reflect import autoclass
DisplayMetrics = autoclass('android.util.DisplayMetrics')
metrics = DisplayMetrics()
print 'DPI', metrics.densityDpi
Expand All @@ -28,7 +28,7 @@ By looking at the `Audio Capture
from Android, you can see the simple step to do for recording an audiofile.
Let's do in with Pyjnius::

from pyjnius.reflect import autoclass
from jnius.reflect import autoclass
from time import sleep

# get the needed Java class
Expand Down Expand Up @@ -60,7 +60,7 @@ Playing an audio file
Following the previous section on how to record an audio file, you can read it
using the Android Media Player too::

from pyjnius.reflect import autoclass
from jnius.reflect import autoclass
from time import sleep

# get the MediaPlayer java class
Expand Down

0 comments on commit b6bc661

Please sign in to comment.