1

I’m working on this face recognition app, so I am using android studio as front-end and python as a back-end.Upon designing my UI in android studio, I want to make a button in a way when i press it , my python script runs. If someone can help me I’d be very grateful. Thanks in advance

1
  • Use an api to call ur backend Commented Jun 16, 2021 at 0:59

1 Answer 1

1

What I think you need to do is run your python script on a server,

Then make a GET request from your app, on click or whatever, then out the response (generally in JSON) from your script.py

Sign up to request clarification or add additional context in comments.

4 Comments

How exactly can i do this, sorry i am still a beginner is there a tutorial or something you can help me more. I would be grateful
This link might be helpfull : stackoverflow.com/questions/26479280/…
Here is a sample about what you need : github.com/qpython-android/app-call-qpython-api

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.