You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to have a Python service and Java native android work together.
the Java native code is in an Android Studio project and Python service is built into an aar with p4a.
I launch my Python service in MainActivity.java:OnCreate like this:
val context = applicationContext
ServicePython.prepare(context)
ServicePython.start(context, "")
And that works fine but for debugging purpose, in my PythonService, I tried to print the \0 byte like this: print("\x00")
And then in the logcat I have: 2021-02-01 15:05:56.570 1154-1421/com.example.myapplication I/python: Python for android ended.
I expected to see an empty line in the logcat like:
Versions
Description
I am trying to have a Python service and Java native android work together.
the Java native code is in an Android Studio project and Python service is built into an aar with p4a.
I launch my Python service in MainActivity.java:OnCreate like this:
And that works fine but for debugging purpose, in my PythonService, I tried to print the \0 byte like this:
print("\x00")
And then in the logcat I have:
2021-02-01 15:05:56.570 1154-1421/com.example.myapplication I/python: Python for android ended.
I expected to see an empty line in the logcat like:
I also tried with \x41 and that works as expected, a "A" get printed, it seems to be specific to \x00.
Command to build the Python service as an aar:
The text was updated successfully, but these errors were encountered: