61,22 → 61,26 |
public void onResponseReceived(Request request, |
Response response) { |
|
JSONValue responseValue = JSONParser.parse(response.getText()); |
JSONArray reponse; |
String urlImage=null; |
String urlImageMax=null; |
|
if ((reponse = responseValue.isArray()) != null) { |
// Url Image |
urlImage= ((JSONString)reponse.get(0)).stringValue(); |
urlImageMax= ((JSONString)reponse.get(1)).stringValue(); |
try { |
JSONValue responseValue = JSONParser.parse(response.getText()); |
JSONArray reponse; |
String urlImage=null; |
String urlImageMax=null; |
|
if ((reponse = responseValue.isArray()) != null) { |
// Url Image |
urlImage= ((JSONString)reponse.get(0)).stringValue(); |
urlImageMax= ((JSONString)reponse.get(1)).stringValue(); |
} |
else { |
urlImage=""; |
urlImageMax=""; |
} |
|
r.rafraichir(new String[]{urlImage,urlImageMax},true); |
} catch (Exception e) { |
// TODO: handle exception |
} |
else { |
urlImage=""; |
urlImageMax=""; |
} |
|
r.rafraichir(new String[]{urlImage,urlImageMax},true); |
} |
}) ; |
|