Java class variable scope problem
<p>I have this code(class in class) in java (andorid)</p>

<pre><code>public class History extends Activity {

public Integer Type;

 private static class HistoryAdapter extends BaseAdapter {

      //I don't know how to access variable "Type" here
     Integer num = Type;// error
       .
       .
       .
     }
      .
      .
      .
</code></pre>

<p>}</p>

<p>I can't add more classes above "extends BaseAdapter"</p>

<p>Can someone help me, how can I access variable Type in class HistoryAdapter </p>

<p>Thanks </p>
