How to change preview of camera at runtime?
问题 I am trying to create an app which captures some x*y sized rectangular portion from the camera view. To achieve that I have been to many threads but none of them seems to be working as required. Basically what i want to achieve is as shown: My requirement is when i open camera there should be a rectangular highlighted bright part on the screen and the rest of the screen should look black translucent displaying the rest of the camera view but when user clicks the button then the camera should