I have a CameraPicture.Callback and the onClick method implemented like this:

        public void onClick(View arg0) {
                tnnCamera.takePicture(null, mPictureCallback, mPictureCallback);
        }       

So does it makes any sense?

Sorry.. I just have no ideia where to start this..

On Aug 24, 2010, at 4:21 PM, nikhil wrote:

your class should implement Gesture Listener

and then override  onClickEvent

On Aug 24, 9:56 am, Pedro Teixeira <[email protected]> wrote:
Hi,

My question is a little bit silly but..

I know how to set a listener for.. let's say a button or a editext so
that when clicked some action happens:

buttonOReditextl.setOnClickListener(new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                        Action goes here
                        }
                });

My question is... how can I set a onClick event for when the user taps/
clicks on the screen? or the surface.. I'm not sure? I want a picture
to be taken when the camera is on.. but don't know how to make a
listener to all the camera view instead of having a button to take a
picture.

Thank you

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

Pedro Teixeira

www.pedroteixeira.org

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