xml parsing - Android: How to traslate "http://www.google.com/ig/api?weather="+cityName xml to get weather in other language? -
i can't traslate informations weather in other language.
if change url
"http://www.google.com/ig/api?weather="+cityname
in
"http://www.google.com/ig/api?hl=it&weather="+cityname
to read information in italian following error:
org.apache.harmony.xml.expatparser$parseexception: @ line 1, column 537: not well-formed (invalid token)
i don't understand why... tokens , nodes equal english ones (try both urls).
the code use here -> http://www.anddev.org/viewtopic.php?t=361
thank much...
u need replace "&" "&,"
like :
querystring.replace("&", "&,"); , = ;
Comments
Post a Comment