Hello...
I try to make service to run in background. It works as should but I can't find way to change text and icon in notification panel. I want to show status here (OK / Alarm) and maybe even to change icon on notification bar.
I use kivy for job.
This is main.py:
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
from android import AndroidService
self.service = AndroidService('MyTitle', 'Mystate')
self.service.start('Param to pass')
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
And this is service routine (main.py) in subfolder service.
import os
import time
print ("starting parameters: ",os.getenv('PYTHON_SERVICE_ARGUMENT'))
while True:
print (time.time())
time.sleep(10)
And in attached picture I mark what I mean to change. Changes should be made from service routine but just can't find the way.

