I have tried the code below, but the coordinates of were very wrong

iv_foto.setOnTouchListener(new OnTouchListener() {

   @Override

 public boolean onTouch(View v, MotionEvent event) {

            switch(event.getAction())

            {

            case MotionEvent.ACTION_DOWN:



                X = (int) event.getX();

                Y = (int) event.getY();





                Intent intent = new Intent(MarcaFoto.this,
PickFriendsActivity.class);

                PickFriendsActivity.populateParameters(intent, null, false,
true);

                startActivityForResult(intent, PICK_FRIENDS_ACTIVITY);

                break;

            case MotionEvent.ACTION_MOVE:

                break;

            case MotionEvent.ACTION_UP:

                break;

            }

  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to