• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Camera API

Here are all of my camera methods. I am trying to put a listener on my "add image" button.

Code:
addImage.setOnClickListener(
                    new OnClickListener() {                    
                        @Override
                        public void onClick(View v) {
                            camera = Camera.open();
                            
                            camera.release();
                        }
                        

            });
          
          
          private void takePicture() {
              camera.takePicture(shutterCallback, rawCallback, jpegCallback); 
            }
             
            ShutterCallback shutterCallback = new ShutterCallback() {
              public void onShutter() {
                // TODO Do something when the shutter closes.
              }
            };

Misplaced constructor is being noted on my takePicture method
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones