Android, alpha on images check, works then stops working
<p>I check whether the pixel of my bitmap is transparent or not using:</p>

<pre><code>int myX = (int)event.getX();
int myY = (int)event.getY();
int color = pngTestBM.getPixel(myX,myY);
int alpha = Color.alpha(color);

if(alpha==0){
//do somthing
}
</code></pre>

<p>I have this is my touch event, under action move:</p>

<pre><code>public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction() &amp; MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_MOVE:
</code></pre>

<p>The problem is, it picks up, say around 100 touches, it outputs that it is transparent then when I move to a non transparent part of the image is outputs that it is not transparent. Then it stops outputting info.</p>

<p>What am I doing wrong?</p>
