コード例 #1
0
 @Override
 protected void onPause() {
   super.onPause();
   ServiceManager.getInstance().pauseService(true);
   Log.e(TAG, "stopUpdateTimer");
   DJIDrone.getDjiMC().stopUpdateTimer(); // Stop the update timer for MC to update info
 }
コード例 #2
0
 @Override
 protected void onResume() {
   super.onResume();
   ServiceManager.getInstance().pauseService(false);
   Log.e(TAG, "startUpdateTimer");
   DJIDrone.getDjiMC().startUpdateTimer(1000); // Start the update timer for MC to update info
 }