OK...I am very new to android development. I recently built an intranet for my company and have a need/want to access the information on the intranet through an android application. Mainly, this is a list of clients. I have used another program I found on the internet and modified it to get my list and I can do so using code like this:
This successfully gets a list of clients via a mysql lookup and echo's that list as JSON...this all works fine, the problem I am having is defining that 'patel'...
I would like to add a text box where one would enter 'john' or 'patel' or whatever, click a button and the application searches and returns the results. Please keep in mind I am very new to all of this and I apologize. At this point I'm not even sure how to make my application wait until a button is clicked to run.
Thanks for any help you may be able to provide. I am very frustrated and would even send my current application (eclipse export) to someone to look at if you're willing.
Code:
JSONObject json = JSONfunctions.getJSONfromURL("http://www.websitehere.com/json.php?keyword=patel");
This successfully gets a list of clients via a mysql lookup and echo's that list as JSON...this all works fine, the problem I am having is defining that 'patel'...
I would like to add a text box where one would enter 'john' or 'patel' or whatever, click a button and the application searches and returns the results. Please keep in mind I am very new to all of this and I apologize. At this point I'm not even sure how to make my application wait until a button is clicked to run.
Thanks for any help you may be able to provide. I am very frustrated and would even send my current application (eclipse export) to someone to look at if you're willing.