The pyjinius foreground service example

386 views
Skip to first unread message

Wilson Mutebi

unread,
Jun 4, 2021, 1:53:41 PM6/4/21
to kivy-...@googlegroups.com
I have been trying to work on some applications with background service. It looks like the background service is automatically killed upon clearing the application from cache on android. So, I have tried to cover that up with a foreground service followith the example on github provided here. However the issue is that I do not know how to add the drawable icon to the service. I want to use a png file but it looks like its not recognisable when put in the same folder or when one puts it in a 'res' folder as available in the android documentation. 
Can Anyone to help me out?

Robert

unread,
Jun 4, 2021, 5:13:36 PM6/4/21
to Kivy users support
The default is the app icon, I tried that with the default app icon and got a circle in the task bar.

The implementation is here:

A perhaps bigger issue I don't think you will get the persistence you want with a foreground service started from Python.

Wilson Mutebi

unread,
Jun 5, 2021, 11:30:44 AM6/5/21
to kivy-...@googlegroups.com
Hello Robert. I have read through the links you sent. I wanted to ask if  its the  kivy version that I set to master with kivy==master or its the branch?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/29e2f5de-49c1-4b32-923c-381d1731d95cn%40googlegroups.com.

Robert

unread,
Jun 5, 2021, 12:29:43 PM6/5/21
to Kivy users support
In requirements, just like one might set ==2.0.0
Reply all
Reply to author
Forward
0 new messages