I am sending variables to PHP though Java/Android by the HttpPost method. I need to debug some of the PHP values and return it back to Java. What is the best means of doing this?
Here is a tangible example:
I send in a Parameter through a NameValuePair. That goes to the HttpPost and then to PHP where it then goes through the conversion of $foo = $_POST['foo'].
What I want to do is return the value of $foo back into Java. Just the single String value, nothing more. Not an Array of any kind. Then I want to toast it so I can see in my emulator or device what value is being sent.