I'm passing a String parameter into a java function I wrote.
When I pass the string parameter the method is accepting my parameter as follows
http://mywebsite.com/getCity.php?StateID={"state":"Alabama"}
I want my method to accept my string parameter as follows http://mywebsite.com/getCity.php?StateID=Alabama
How do I get rid of {"state":"Alabama"}?
Hey Guys,
I'm building an android app. My syntax below is definitely java. I'm going to show you where I'm having trouble. I'm having trouble on the first line of the method so to show you the entire method would be silly.
public JSONArray getDetails(String StateID) {
// this Log.e is showing {"state":"Alabama"}
// how do I get it to show Alabama?
Log.e("StateID= " + " = ", StateID);
}