Android - Using int in different classes
<p>i have this int MASK.. </p>

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

 /** Called when the activity is first created. */

    public int MASK=R.drawable.face00;

        public void setMask(int value)
    {
        MASK=value;
    }
</code></pre>

<p>its value is changed in the same class Canvastutorial as </p>

<pre><code>public void onClick(DialogInterface dialog, int item) 
            {
                if(items[item]=="Mask 1")
                {
                    setMask(R.drawable.face00);
                }
                else if(items[item]=="Mask 2")
                {
                    setMask(R.drawable.face01);
                }
                else if(items[item]=="Mask 3")
                {
                    setMask(R.drawable.face02);
                }
                else if(items[item]=="Mask 4")
                {
                    setMask(R.drawable.face03);
                }
                else if(items[item]=="Mask 5")
                {
                    setMask(R.drawable.face04);
                }
</code></pre>

<p>i want to use this int MASK in other class</p>

<pre><code>public class Panel extends SurfaceView implements SurfaceHolder.Callback{
</code></pre>

<p>i am unable to do so.. so far i tried to call MASK as 
Canvastutorial.ct = new Canvastutorial();
and then using ct.MASK;</p>

<p>but this forced closed the application..</p>

<p>Any ideas how to do so?</p>
