如何在Android Studio中的变量中存储MySQL数据? [重复]

This question already has an answer here:

I am new to Android Studio, and I have created a database in wamp server and now want to retrieve the data and store it in a variable in Android Studio and use it for something else.

Example: my table in the database consists of a field with integer data type, what I want to do in android studio is, if the value of the field =

</div>

The best to achieve this is to do some php coding and get your data output as associative array and then

json_encode($sqldata);

after this I would suggest you to use Volley Networking Library from google and parse the json response in android as per your requirements.