Señores, de verdad me ha quedado muy dificil hacer un ensayo de REST, nc pero mi emulador no lee el sitio remoto.
Comento lo que tengo
Código HTML:
// Creating JSON Parser instance
JSONParser jParser = new JSONParser();
// getting JSON string from URL
JSONObject jsonSel = jParser.getJSONFromUrl("http://xxxxxxxxxxxxxxxxxxxxxx/test.php");
// Getting Array of Contacts
try {
JSONArray info = jsonSel.getJSONArray("nombre");
JSONObject c = info.getJSONObject(0);
String elnombre = c.getString("nombre");
Log.e("MensajeOk", elnombre);
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Que puede estar pasando, me aparece un error de lectura del JSON