how to touch on two buttons at the same time in Android
<p>I want to implement OnTouchEvent for two buttons and get 
MotionEvent.ACTION_MOVE function at same time.</p>

<p>I implemented onTouchEvent but doesn't work</p>

<pre><code>    left = (Button)findViewById(R.id.button1);
    right = (Button)findViewById(R.id.button2);
    left.setOnTouchListener(this);
    right.setOnTouchListener(this);

    @Override
    public boolean onTouch(View v, MotionEvent event) {
        // TODO Auto-generated method stub

        if (event.getAction() == MotionEvent.ACTION_DOWN) {
            if(v.getId()==R.id.button1){
                Log.i("left", "moved!");
            }
            if(v.getId()==R.id.button2){
                Log.i("right", "move!");
            }
        }
        return false;
    }
</code></pre>

<p>in AndroidManifest.xml</p>

<pre><code>&lt;uses-feature android:name="android.hardware.touchscreen.multitouch"
           android:required="true" /&gt;
</code></pre>

<p>please help me to figure this out.</p>
