Skip to content

Commit 53081b8

Browse files
authored
Merge pull request #2372 from xloem/patch-1
Add service information for buildozer.spec
2 parents 61a4d3c + fb96b2b commit 53081b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/source/services.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ options.
5353

5454
To create the service, create a python script with your service code
5555
and add a :code:`--service=myservice:/path/to/myservice.py` argument
56-
when calling python-for-android. The ``myservice`` name before the
57-
colon is the name of the service class, via which you will interact
58-
with it later. You can add multiple
59-
:code:`--service` arguments to include multiple services, which you
60-
will later be able to stop and start from your app.
56+
when calling python-for-android, or in buildozer.spec, a
57+
:code:`services = myservice:/path/to/myservice.py` [app] setting.
58+
The ``myservice`` name before the colon is the name of the service
59+
class, via which you will interact with it later. You can add multiple
60+
:code:`--service` arguments to include multiple services, or separate
61+
them with a comma in buildozer.spec, all of which you will later be
62+
able to stop and start from your app.
6163

6264
To run the services (i.e. starting them from within your main app
6365
code), you must use PyJNIus to interact with the java class

0 commit comments

Comments
 (0)