示例#1
0
 /**
  * A key was released.
  *
  * <p>The default implementation handles KEYCODE_BACK to close the dialog.
  *
  * @see #onKeyDown
  * @see KeyEvent
  */
 public boolean onKeyUp(int keyCode, KeyEvent event) {
   if (keyCode == KeyEvent.KEYCODE_BACK && event.isTracking() && !event.isCanceled()) {
     onBackPressed();
     return true;
   }
   return false;
 }
  /** This definition finishes the activity and returns to the MainActivity. */
  @Override
  public void onBackPressed() {

    LogMsg("INSIDE:onBackPressed");

    LogMsg("Finishing the ProviderActivity");
    ((Activity) callerContext).finish();

    super.onBackPressed();
  }
 @Override
 public void onBackPressed() {
   // STOPPING IMAGE MANAGER THREADS
   try {
     if (adapter != null && adapter.getImageManager() != null)
       adapter.getImageManager().interrupThread();
     if (imageManager != null) imageManager.interrupThread();
   } catch (Exception e) {
     e.printStackTrace();
   }
   super.onBackPressed();
 }
示例#4
0
 @Override
 public void onBackPressed() {
   mListener.onCancel();
   super.onBackPressed();
 }
示例#5
0
 @Override
 public void onBackPressed() {
   super.onBackPressed();
   this.dismiss();
 }