title: How to get data from custom dialog?
body: <p>I have created a custom dialog class(extended it with Dialog) with 3 buttons, and each button must call a different activity. I seem to be having problems with calling the activity onClick.</p>
  
  <pre><code>private class OKListener implements android.view.View.OnClickListener {
      @Override
      public void onClick(View v) {
          dismiss();
          Intent myintent = new Intent(myapp.this,nextAct.class)
          startActivity(myintent);
          }
  
      }
  }
  </code></pre>
  
  <p>What am I missing?
  Can you give me specific examples on how to call an activity from a custom Dialog class? I would really appreciate it much! I am already desperate after going through the whole night without much sleep. </p>
  
  <p>I followed this tutorial by the way: <a href="http://www.androidpeople.com/android-custom-dialog-example/" rel="nofollow">How to display custom dialog in Android</a> </p>
  
  <p>~Ciao</p>