Android: Json is not able to retrieve any files from mysql database it is empty

前端 未结 1 1913
闹比i
闹比i 2021-01-27 11:16

i am new to android and i am using mysql database where i am linking php file for connection which is working fine but my code is not displaying anything it is only showing back

相关标签:
1条回答
  • 2021-01-27 11:55

    Ok, to avoid adding more comments:

    1. Make sure you have the correct JSON data in your result string. Logging can help with tasks like that. Or maybe just use a Toast to just display the string to verify it's correct.

    2. gv.setFilterText(s); will not cause any output. To display strings in the GUI you should use a TextView item that you put inside your layout, GridView in this case, and setText() on it.

    0 讨论(0)
提交回复
热议问题