Hi. I'm developing an Android App with python-for-android, Kivy and Buildozer. I'm trying to run an AndroidService but when it starts, after the notification icon appears, the service crashes (not the App).
Reading logcat, I found it says this is the exception found while running the service: 01-18 19:41:31.438 F/DEBUG (1001): Abort message: 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: GetStringUTFChars received NULL jstring'
The code on main App calling the service is:
def build(self):
if platform == 'android':
from android import AndroidService
service = AndroidService('my service', 'running')
service.start('argument')
self.service = service
And the service code is:
from time import sleep
if __name__ == '__main__':
while True:
sleep(.1)
The service is located on service/main.py, where it has to be. I'm using the new p4a toolchain (android_new), I don't know if that matters. I also tried
this methods for calling the service, but they also failed with the same exception.
I'd really like to solve this because I need to run services, any help would be appreciated.