FlaskWithAndroid
FlaskWithAndroid copied to clipboard
how to get mutli values from flask return to retrofil
how to get mutli values from flask return to retrofit for example i get lattitude & longitude from flask but msg show 1 value only flask:
@app.route('/api/xyz', methods=['POST']) def xyz(): return str(latitude), str(longitude)
android: val msg = response.body()?.string() msg only get 1 value how to get multiple values.
For that you need to json by making a json use same method as showen in the code for post and done