Answer the question
In order to leave comments, you need to log in
How to pass a variable from Java to Python?
Hello!
Tell me, please, I have an Android application code in Java that reads the last incoming SMS.
I want to pass this sms (string) to a python script. Rather, as an argument to a function in a script.
Then, when the script completes, i.e. the function will return the result, pass that result back to the Java code, and display it to the user as the final result. What can I watch or read? I can't find info anywhere
Answer the question
In order to leave comments, you need to log in
Through the server. Learn client-server architecture.
You send a request to the API from android, and the server redirects it to Python. And then the result is reversed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question