Relative Content

Tag Archive for pythonandroidkotlinhttpflask

How can i use Python-Flask API on Kotlin Android Studio?

I am developing an android app that’s recommends recipes based on the ingredients received from the user. I wrote a python ml model for that and i created an API with flask. This API works fine when i try it on postman but when i try to connect from android studio it doesnt work, actually i dont get any error message but when i run the response doesn’t show on the screen. I used AsyncTask to HTTP connect and get response. Here is mine Python-Flask, MainActivity and AsyncTask codes can someone check and help if there is any fault? (I added Internet permission on AndroidManifest)

I need help abot Kotlin – Python http request

I am developing an android app that’s recommends recipes based on the ingredients received from the user. I wrote a python ml model for that and i created an API with flask. This API works fine when i try it on postman but when i try to connect from android studio it doesnt work, actually i dont get any error message but when i run the response doesn’t show on the screen. I used AsyncTask to HTTP connect and get response. Here is mine Python-Flask, MainActivity and AsyncTask codes can someone check and help if there is any fault? (I added Internet permission on AndroidManifest)