예제 #1
0
  @Override
  protected void onResume() {
    super.onResume();
    // We'll use the starred hosts when network is offline.
    starredHostDao.open();
    starredHosts = starredHostDao.getAllBrief();

    setUpMapIfNeeded();
  }
예제 #2
0
 @Override
 protected void onPause() {
   starredHostDao.close();
   super.onPause();
 }