After tapping screen it stops in 1 or 2 seconds. It stops get the
"touch" events. I couldn't understand why..
Can anyone help me?
Thanks

public class HelloGoogleMapsActivity extends MapActivity implements
OnTouchListener  {
    private MapView mapView;

        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
        mapView.setOnTouchListener(this);
    }
    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }

     @Override
    public boolean onTouch(View v, MotionEvent event) {
           if(event.getAction()== event.ACTION_UP){
                  //other things...
           }

        v.onTouchEvent(event);
        v.setOnTouchListener(this);
        return true;
    }

}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to