title: How to pause and resume an activity from a customized dialog box? (ANDROID)
body: <p>I made a customized Dialog box and it has 3 buttons. (The resume, restart, quit).. how would I access the main activity or the actual game to continue when I click the button resume?? Thanks for your help. :))</p>
  
  <p>this is my code for the dialogbox activity:</p>
  
  <pre><code>private Tetris mtetris;
  Button btResume, btRestart, btQuit;
         @Override
     protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_dialogbox);
      setFinishOnTouchOutside(false);
  
       btResume = (Button) findViewById(R.id.resumebt);
       btRestart = (Button) findViewById(R.id.restartbt);
       btQuit = (Button) findViewById(R.id.quitbt);
  
       btResume.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              mtetris.mTetrisView.setMode(TetrisTileView.RUNNING);
              mtetris.dialog.dismiss();
  
          }
      });
       btQuit.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub      
              }
          });  
       }
  }
  </code></pre>