I am writing a code in which I am trying to open up the camera of the device but my command is not working , it is showing compiletime error , Please see that is the command correct or is it wrong and if it is wrong then please provide me the correct code , this is my code –
Camera camera= Camera.open();
Try using this –