Ver Mensaje Individual
  #2  
Viejo 13/03/10, 20:29:34
Array

[xs_avatar]
diamant-x diamant-x no está en línea
Usuario muy activo
 
Fecha de registro: ago 2008
Mensajes: 1,549

Hola, en este libro (Ed Burnette - Hello Android.pdf -> http://www.htcmania.com/showthread.php?t=82397 ) encontré un trozo de codigo que quizas te ayude, aunque ya hace tiempo y quizas lo solucionaste (yo estoy en ello )

Código:
      // Read results from the query
         BufferedReader reader = new BufferedReader(
            new InputStreamReader(con.getInputStream(), "UTF-8"));
         String payload = reader.readLine();
         reader.close();



         // Parse to get translated text
         JSONObject jsonObject = new JSONObject(payload);
         result = jsonObject.getJSONObject("responseData")
               .getString("translatedText")
               .replace("'", "'")
               .replace("&", "&");
Responder Con Cita