Transferring variables between two classes
<p>I have 2 classes:</p>

<pre><code>public class TouchImageView extends ImageView
public class TouchImageViewActivity extends Activity
</code></pre>

<p>In my <code>TouchImageView</code> class I have touch listener that calculates where you have touched the image. What I need is to transfer the touch point to the <code>TouchImageViewActivity</code> without creating new instance of it. The touch calculated constancy.</p>

<p>Calling <code>TouchImageView</code> from <code>TouchImageViewActivity</code>: </p>

<pre><code>TouchImageView img = (TouchImageView) findViewById(R.id.img);
    img.setImageResource(R.drawable.g_map2048);
</code></pre>
