File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -130,3 +130,20 @@ The call to this method should be done within the service code::
130130 from jnius import autoclass
131131 PythonService = autoclass('org.kivy.android.PythonService')
132132 PythonService.mService.setAutoRestartService(True)
133+
134+ Service auto-start
135+ ~~~~~~~~~~~~~~~~~~~~
136+
137+ For auto-start service on boot need add inside out AndroidManifest.xml this code::
138+
139+ <receiver android:name=".MyBroadcastReceiver" android:enabled="true" android:exported="true">
140+ <intent-filter>
141+ <action android:name="android.intent.action.BOOT_COMPLETED" />
142+ <action android:name="android.intent.action.QUICKBOOT_POWERON" />
143+ <action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
144+ </intent-filter>
145+ </receiver>
146+
147+ You can do it use section ``android.extra_manifest_application_xml `` in ``buildozer.spec `` code::
148+
149+ android.extra_manifest_application_xml = %(source.dir)s/xml/receivers.xml
You can’t perform that action at this time.
0 commit comments