简体   繁体   中英

How i can fetch array form of data from MYSQL database and show it in android studio

i am trying to fetch arrays form of data which i store in form of JSON in mysql database.How i can show it in my android project.I am recieving following data from mysql data base

"[rice, rice, kabab]""[rice, rice, kabab, kabab, kabab]"

I am using Volley library in my android project

Convert the received data in to JSON

JSONArray array = new JSONArray(response);

then you can simply traverse through that array and make it visualized

this link might help: https://www.simplifiedcoding.net/retrieve-data-mysql-database-android/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM