title: access variables of outer class in Java
body: <p>in Java android application how can i access variables of outer class from the inner anonymous class ?
  Example:</p>
  
  <pre><code>    ProgressDialog dialog = new ProgressDialog(this);
      .....
      send.setOnClickListener(new View.OnClickListener() 
      {
          public void onClick(View v) {
  
             //here i'd like to do something with **dialog** variable
             .......
  
          }
      });
  </code></pre>