Closed GoogleCodeExporter closed 8 years ago
The following example code always returns zero for the download count. public void callInfo(String email, String passwd) { try { MarketSession session = new MarketSession(); try { session.login(email, passwd); } catch (Exception e) { System.out.println("Login Error: " + e.getMessage()); } String query = "pub:xxxxxx"; AppsRequest appsRequest = null; try { appsRequest = AppsRequest.newBuilder() .setQuery(query) .setStartIndex(0).setEntriesCount(10) .setWithExtendedInfo(true) .build(); } catch (Exception ex) { System.out.println("Error Request: " + ex.getMessage()); } Callback<AppsResponse> callback = null; try { callback = new Callback<AppsResponse>() { public void onResult(ResponseContext context, AppsResponse response) { int cnt = (int) response.getAppCount(); for (int i = 0; i < cnt; i++) { System.out.println(response.getApp(i).getPackageName() + "\tCount: " + response.getApp(i).getExtendedInfo().getDownloadsCount() + "\tCountText: " + response.getApp(i).getExtendedInfo().getDownloadsCountText()); } } }; } catch (Exception ec) { System.out.println("Error Callback: " + ec.getMessage()); } session.append(appsRequest, callback); session.flush(); I am getting 0 (zero) for each app as the download counter, while the text field gives me the range of number of downloads correctly.
Original issue reported on code.google.com by tedm0...@gmail.com on 20 Oct 2010 at 10:05
tedm0...@gmail.com
The downloadCount field is no longer used by google - it will always turn zero. Working as it should.
Original comment by strazz@gmail.com on 7 Dec 2010 at 1:00
strazz@gmail.com
Original issue reported on code.google.com by
tedm0...@gmail.com
on 20 Oct 2010 at 10:05