예제 #1
0
  @Override
  protected void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    itemsDao = new ItemsDao(this);
    itemsDao.open();
  }
예제 #2
0
 @Override
 protected void onResume() {
   itemsDao.open();
   super.onResume();
 }