我已经设置了一个Java应用程序,其中我正在创建一个由4个卡片组成的捆绑包。问题是,并非所有的卡片都会立即显示出来。有时只有一张牌显示出来,然后几秒钟或几分钟后其他牌才显示出来。如何让它们同时显示在耳机上?
编辑: 我尝试了HTML分页,但那并没有起作用,现在我更加困惑了。所以在我的情境中,我想向用户发送一堆他们可以导航到的地标。我希望所有地标都在一个捆绑包中,我想要一个不在包中的封面,上面写着“这里是你的地标”,而且我希望捆绑包能够同时到达用户手中。我该如何实现这一点?
编辑: 我尝试了HTML分页,但那并没有起作用,现在我更加困惑了。所以在我的情境中,我想向用户发送一堆他们可以导航到的地标。我希望所有地标都在一个捆绑包中,我想要一个不在包中的封面,上面写着“这里是你的地标”,而且我希望捆绑包能够同时到达用户手中。我该如何实现这一点?
TimelineItem timelineItemEmpire = new TimelineItem();
timelineItemEmpire.setText("Empire State Building");
// Triggers an audible tone when the timeline item is received
timelineItemEmpire.setNotification(new NotificationConfig().setLevel("DEFAULT"));
Location empireLoc = new Location();
empireLoc.setLatitude(40.748492);
empireLoc.setLongitude(-73.985868);
timelineItemEmpire.setLocation(empireLoc);
// Attach an image, if we have one
URL url = new URL(WebUtil.buildUrl(req, "/static/images/empirestate.jpg"));
timelineItemEmpire.setBundleId(bundleId);
List<MenuItem> menuItemList = new ArrayList<MenuItem>();
menuItemList.add(new MenuItem().setAction("NAVIGATE"));
timelineItemEmpire.setMenuItems(menuItemList);
MirrorClient.insertTimelineItem(credential, timelineItemEmpire, contentType, url.openStream());
TimelineItem timelineItemCP = new TimelineItem();
timelineItemCP.setText("Central Park");
// Triggers an audible tone when the timeline item is received
timelineItemCP.setNotification(new NotificationConfig().setLevel("DEFAULT"));
// Attach an image, if we have one
URL url3 = new URL(WebUtil.buildUrl(req, "/static/images/central_park.jpg"));
timelineItemCP.setBundleId(bundleId);
Location cpLoc = new Location();
cpLoc.setLatitude(40.772263);
cpLoc.setLongitude(-73.974488);
timelineItemCP.setLocation(cpLoc);
timelineItemCP.setMenuItems(menuItemList);
MirrorClient.insertTimelineItem(credential, timelineItemCP, contentType, url3.openStream());
TimelineItem timelineCover = new TimelineItem();
timelineCover.setText("Nearby Landmarks");
timelineCover.setBundleId(bundleId);
// Triggers an audible tone when the timeline item is received
timelineCover.setNotification(new NotificationConfig().setLevel("DEFAULT"));
// Attach an image, if we have one
URL url4 = new URL(WebUtil.buildUrl(req, "/static/images/bundle_cover.jpg"));
MirrorClient.insertTimelineItem(credential, timelineCover, contentType, url4.openStream());