@Override
 protected void onPause() {
   super.onPause();
   dataSource.close();
 }
 @Override
 protected void onResume() {
   super.onResume();
   dataSource.open();
 }