Skip to content

Commit fb96b2b

Browse files
authored
Add service information for buildozer.spec
Since this seems to be where the background service documentation is, I wanted to add how to set them up in buildozer.
1 parent f19d3f7 commit fb96b2b

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)