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
Copy file name to clipboardExpand all lines: docs/source/android.rst
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,13 @@
1
1
Python API
2
2
==========
3
3
4
-
The Python for android project includes a Python module called "android". It
5
-
consists of multiple parts which are mostly there to facilitate the use of the Java API.
4
+
The Python for Android project includes a Python module called
5
+
``android`` which consists of multiple parts that are mostly there to
6
+
facilitate the use of the Java API.
6
7
7
-
This module is not designed to be comprehensive. Most of the Java API is also accessible with PyJNIus,
8
-
so if you can't find what you need here you can try using the Java API directly instead.
8
+
This module is not designed to be comprehensive. Most of the Java API
9
+
is also accessible with PyJNIus, so if you can't find what you need
10
+
here you can try using the Java API directly instead.
9
11
10
12
11
13
Android (``android``)
@@ -88,7 +90,7 @@ This billing module gives an access to the `In-App Billing <http://developer.and
88
90
89
91
#. `Setup some In-App product <http://developer.android.com/guide/google/play/billing/billing_admin.html>`_ to buy. Let's say you've created a product with the id "org.kivy.gopremium"
90
92
91
-
#. In your application, you can use the billing module like this::
93
+
#. In your application, you can use the ``billing`` module like this::
92
94
93
95
94
96
from android.billing import BillingService
@@ -123,7 +125,7 @@ This billing module gives an access to the `In-App Billing <http://developer.and
123
125
# Return all the items purchased
124
126
return self.service.get_purchased_items()
125
127
126
-
#. To initiate an in-app purchase, just call the buy() method::
128
+
#. To initiate an in-app purchase, just call the ``buy()`` method::
127
129
128
130
# Note: start the service at the start, and never twice!
129
131
bs = MyBillingService()
@@ -136,7 +138,7 @@ This billing module gives an access to the `In-App Billing <http://developer.and
136
138
137
139
#. You'll receive all the notifications about the billing process in the callback.
138
140
139
8000
code>
-
#. Last step, create your application with `--with-billing $BILLING_PUBKEY`::
141
+
#. Last step, create your application with ``--with-billing $BILLING_PUBKEY``::
0 commit comments