i = 0; i < roads.size(); i++) { String to = roads.get(i).getTo();
for (int j = 0; j < places.size(); j++) { // this is where things go wrong, itdoesn't iterate because the
我正在使用Google,我需要使用Place检索位置细节,我试图调用方法getPlaceById(),但它总是失败。googleApiClient.isConnected()) return; Places.GeoDataApi.getPlaceByIdprediction.getPlaceId()); i
但是,该文件非常大(850万行),因此ArrayList也是如此(我认为这会导致我的程序一运行就挂起)。它似乎不适用于我当前的代码--这是删除ArrayList中旧项的正确方法吗?以下是相关代码: for (int i = 0; i < places.size(); i++) { places.get(i).fadeCoordinate();
i
这段代码工作得很好,但是对于一个地方(因为以aaa开头而意外选择-只是为了测试),它无法从buffer中获取place对象。> parent, View view, int position, long id) { Retrieve the place ID of thedetails about the place. */
PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi.