I am kind of newbie in Android development, so my apologies in advance if my question is trivial. In one part of my app I need a live preview of my rear camera, so I created
if (Build.MODEL.equals("Nexus 5X")){ // rotate camera 180° mCamera.setDisplayOrientation(180); }
Change 5x to 5X will be ok.