Dear Kivy users,
I'm trying to run an AndroidService from a kivy app. The first steps went quite well and I can successfully start the service. Yet, it seems that there are some problems with the communication. I followed the example on kivy planet (
http://kivy.org/planet/2014/01/building-a-background-application-on-android-with-kivy/), but I can't even get the example to run. I have never used buildozer before and have no clue what to edit in the buildozer.spec file (in fact, buildozer reinstalled ant although I already had it installed). So buildozer didn't work at all yet. I'm just plainly compiling my python4android using distribute.py and then build using
build.py ./build.py --dir path/to/my/app --package org.test.MyApp --name "MyApp" --orientation portrait --version 1.1.0 debug installd
My app doesn't really start. I see a short flash on the phone's screen and then the service is started and I see the respective icon in the task bar, but the app has crashed. My kivy-logfile .kivy/logs/kivy_14_09_21_2.txt ends with
[WARNING] stderr: File "/home/ingo/Hacking/python-for-android/build/python-install/lib/python2.7/socket.py", line 187, in __init__
[WARNING] stderr: socket.error: [Errno 13] Permission denied
The above mentioned kivy planet article points out that when modifying the buildozer.spec file I should not forget "to add the NETWORK permission". Yet, the same error remains if I request the NETWORK permission with
build.py ./build.py --dir path/to/my/app --package org.test.MyApp --name
"MyApp" --orientation portrait --permission NETWORK --version 1.1.0 debug installd
Notably,
adb shell pm list permissions
doesn't list a NETWORK permission in this form, so I feel that I might just have to request the right permission.
How do I correctly get kivy.lib.osc to work? Which permission should I ask for? I feel that I'm asking totally useless questions and I would appreciate any help.
Thanks a lot in advance,
Ingo