I am trying to accomplish a currency converter app for android and I’m using Google Currency Converter to do it by sending an URL with this form :
http://www.google.com/ig/calculator?q="amount""from currency code"=?"to currency code"
Example :-
http://www.google.com/ig/calculator?q=10USD=?EGP
and the out put for the Example will be :
{lhs: "10 U.S. dollars",rhs: "59.701849 Egyptian pounds",error: "",icc: true}
and what I want to do is to show in the TextView (which will show the final result for the user) only this :-
59.701849 Egyptian pounds
so any ideas will be helpful and thanks for your help in advance…
That’s a JSON string. Use the
JSONObjectclass http://developer.android.com/reference/org/json/JSONObject.html