Hello, i have simple app. I want then ontouch to start next activity,
but then i touch the screen next activity starts 2 times. Here is my
methods:

@Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);
                ib = (ImageButton) findViewById(R.id.ImageButton01);
                ib.setOnTouchListener(this);
        }

@Override
        public boolean onTouch(View v, MotionEvent event) {
        paleistiZaidima();
                return true;

        }
public void paleistiZaidima() {
                Intent k = new Intent(Main.this, Zaidimas.class);
                startActivity(k);
                finish();
        }

The strange thing is i have a menu, and if i start the activity from
menu it starts normaly 1 time..  trying to resolve this problem 1 week
nothing helps..

-- 
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