final HttpClient client = (mode == Mode.NO_ASYNC_TASK) ? new DefaultHttpClient()
: AndroidHttpClient.newInstance("Android");
- //Log.d(LOG_TAG, url + " GET");
+ Log.d(LOG_TAG, "GET " + url);
HttpGet getRequest = null;
try {
getRequest = new HttpGet(url);
HttpResponse response = client.execute(getRequest);
final int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != HttpStatus.SC_OK) {
- Log.w(LOG_TAG, "Error " + statusCode + " while retrieving bitmap from " + url);
+ Log.w(LOG_TAG, "Error " + statusCode + " retrieving " + url);
return null;
}
this.publisher = safeString(info.getString("publisher"));
this.doc_id = info.getInt("doc_id");
this.image = safeString(info.getString("tcn"));
+ Log.d(TAG, "image=" + image);
this.doc_type = safeString(info.getString("doc_type"));
} catch (Exception e) {
Log.d(TAG, "Exception basic info " + e.getMessage());
try {
String postData = compilePostData(service, method);
+ Log.d(TAG, "POST "+httpConn.url.toString()+"?"+postData);
urlConn = (HttpURLConnection) httpConn.url.openConnection();
urlConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");