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
Ok, to avoid adding more comments:
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.
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.