Пример #1
0
 @Override
 protected void onPause() {
   datasource.closeDatabaseConnection();
   super.onPause();
 }
Пример #2
0
 @Override
 protected void onResume() {
   datasource.openDatabaseConnection();
   super.onResume();
 }