Why isn't multi-touch working for my imagebuttons?

Posted by Droidy on Stack Overflow See other posts from Stack Overflow or by Droidy
Published on 2010-05-02T00:55:43Z Indexed on 2010/05/02 1:07 UTC
Read the original article Hit count: 308

Filed under:
|

I'm using imagebuttons that play sounds using SoundPool. Here is example code of one of the imagebuttons:

ImageButton Button1 = (ImageButton)findViewById(R.id.sound); Button1.setOnTouchListener(new OnTouchListener() {

        public boolean onTouch(View v, MotionEvent event) {
            if (event.getAction() == MotionEvent.ACTION_DOWN ) {
                mSoundManager.playSound(1);
                return false;
            }

            return false;
        }
    });

For some reason, it doesn't allow you to click multiple buttons at the same time. Is it because I'm building for 1.6 SDK?

Thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk