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

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