#UFOCUS ON HTC ONE M8 SOFTWARE#
Unfortunately the secondary sensor is not compatible with optical image stabilization which means the One's optical system has been replaced with a "Smart Stabilization" software solution of which HTC claims it is as good as the optical variant in the One. The One M8 then uses this information to apply blur to the background in an attempt to simulate the narrow depth-of-field of large sensor/fast lens combinations on digital SLRs and mirrorless system cameras. There is also a refocus feature that lets you select the focus point in an image after it has been taken, a little like using a Lytro light field camera (although in the HTC, the effect is achieved by shooting a very rapid burst of focus-bracketed images and then essentially just choosing between them). This is meant to mimic the stereoscopic view of human eyes and allows the camera to distinguish between objects in the foreground of the image and the background. Like its predecessor the One M8 records image information on a 1/3-inch 4MP CMOS sensor but on the new model the main sensor is assisted by a secondary chip which captures depth information.
While HTC has stuck with the design language of the original One, the new model is slightly larger and comes with the usual upgrades, such as faster processor, more RAM, bigger screen and new software functions. The most talked about new feature comes in the camera though.
Public class Main extends Activity implements SurfaceHolder.The One M8 is HTC's latest flagship smartphone and competing with the Samsung Galaxy S5, Sony Xperia Z2, Nokia Lumia 930, LG G2 and Apple' iPhone 5s for the affection of mobile photographers and other smartphone users alike.
#UFOCUS ON HTC ONE M8 CODE#
I have change the code as following import My code work fine on HTC m7 and other devices. Hi I have the same problem on auto focus with HTC M8. I also did a factory reset with the M8 and its still doesn't work. Instagram's app also works fine so they are doing something special to get it to work.ĮDIT Just tried the same code on a friends HTC One Dual Sim and the focus works fine. The front facing camera works fine for autofocus with Commonsware's camera also.
I tried toFocus(.) also and it didn't work either so I am kinda out of ideas. I've also done a params.getSupportedFocusModes().contains(_MODE_CONTINUOUS_PICTURE) test on the M8 and it returns true. I've tried the same code on a Nexus 4 and Galaxy 3 and they work perfectly. Initially I thought I might have been something wrong in my code but then I tried Commonsware's camera app/library and I get the same result - an image which is blurry from the start which makes no effort to focus. There is nothing wrong with the hardware in that the stock camera will focus perfectly (and there is no dirt on the lens). I can't get my HTC M8 rear facing camera to autofocus.