嗨,我有一个请求 URL(Google Places 请求 URL),我得到的响应是一张图片。如何在回调函数中获取图像?
更新
AQuery aQuery = new AQuery(getApplicationContext());
String urlString = "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRoAAAAGJs3jtWR_Dm_lQSan6ha40TR2IKPlqbLQ5-slSCxPJJIksM2GmiEhqBtmhtdu9_njLxvFMyTMz-e_FoDIZuKmoS65Uc1AeD4kWjrJ4SwEjgT4ac-KtfNaX4Lg0FOqJRCN33ylJikCF29bgqKCcNUQxIQ0OvXpGXfUT3ADICQqP_QOhoUBlByoB4FKPp1woIKVb2Z01bblrw&sensor=true&key=AIzaSyB-tx7MBOQk4qya_vnmwHlQDao-SufKuBw";
aQuery.ajax(urlString, String.class, new AjaxCallback<String>(){
@Override
public void callback(String url, String content, AjaxStatus
//Here "content" is the response that I'm getting. Currently I'm getting this as a String I don't know how to get it as a image
}
});