11

光学ズームを備えた Android デバイスがいくつかあるようです。

  • サムスン S4 ズーム (OS 4.2)
  • アルテック A14 & A16 (OS 2.3.5)

これをプログラムで検出する方法はありますか?

カメラは初期化に数秒かかることが多いため、私のアプリでは、ユーザーがカメラを使用しようとしていることを予測してカメラを起動するフローがいくつかあります (そのため、ユーザーが実際にアプリ内カメラ ボタンを押すと、アプリはより速く感じます) . カメラに光学ズームがある場合、レンズがスライドしてユーザーを悩ませるので、これを行いたくありません。

これらのデバイスをブラックリストに載せる必要がある場合、光学ズームを備えた、できればBuild.MANUFACTURERおよびBuild.PRODUCT文字列を備えたすべての Android デバイスのリストを知っている人はいますか?

参考までに、最近購入した S4 ズームの Camera.Parameters を次に示します。

{preferred-preview-size-for-video=704x528, factory-af-led-lv-limit=-1,-1, zoom=0, factory-af-scan-limit=-1,-1, max-num-detected-faces-hw=0, continuous-mode=off, zoom-supported=true, metering=center, whitebalance=auto, scene-mode=auto, jpeg-quality=1, factory-testno=0, factory-af-diff-check=-1,-1, preview-format-values=yuv420sp,yuv420p, best-mode=off, red-eye-fix=fail, jpeg-thumbnail-quality=100, preview-format=yuv420sp, low-light-mode=off, zoom-action=zoom-stop, face-detection=off, video-size-values=1920x1080,1280x720,800x450,768x512,640x480,320x240,176x144, factory-zoom-slope-check-data=-1,-1, preview-size=960x540, focal-length=4.300000, flash-charging=0, factory-cap-range=-1,-1, factory-iris-range=-1,-1, flash-mode-values=off,auto,red-eye,on,fillin,slow,red-eye-fix, preview-frame-rate-values=30,15, factory-af-scan-range=-1,-1, max-num-metering-areas=0, preview-frame-rate=30, focus-mode-values=auto,infinity,macro,fixed,face-detection,continuous,continuous-picture,continuous-video,manual,multi,touch,object-tracking, jpeg-thumbnail-width=224, video-size=0x0, scene-mode-values=auto,portrait,landscape,night,beach,snow,sunset,fireworks,sports,party,candlelight,dusk-dawn,fall-color,back-light,text, preview-fps-range-values=(7000,30000), jpeg-thumbnail-size-values=224x126,160x120,192x128,0x0, zoom-ratios=100,120,140,160,180,220,310,420,560,790,1000, preview-size-values=960x540,768x512,704x576,704x528,640x524,640x480,320x240, smart-scene-detection=0, factory-zoom-range-check-data=-1,-1, factory-af-led-range=-1,-1,-1,-1, picture-size-values=4608x2592,3264x2448,4608x3456,4608x3072,4096x2304,3960x2640,3648x2736,2592x1944,2304x1728,1984x1488,1920x1080,1024x768,960x720,640x480, preview-fps-range=7000,30000, auto-whitebalance-lock=false, min-exposure-compensation=-6, antibanding=off, max-num-focus-areas=1, vertical-view-angle=46.3, factory-wb-value=-1,-1,-1,-1, zoom-ring=-1, horizontal-view-angle=67, video-stabilization-supported=false, jpeg-thumbnail-height=126, continuous-fps=, focus-mode=auto, factory-sc-speedtime=-1,-1, factory-gyro-range-data=-1,-1,-1,-1, auto-whitebalance-lock-supported=true, video-frame-format=yuv420sp, max-num-detected-faces-sw=0, picture-format-values=jpeg, wb-k=-1, max-exposure-compensation=6, factory-ois-range-data=-1,-1,-1,-1,-1,-1,-1, focus-areas=(0,0,0,0,0), exposure-compensation=0, exposure-compensation-step=0.33, flash-mode=off, flash-standby=off, auto-exposure-lock=false, wb-custom=-1,-1, effect-values=none,mono,negative,sepia,antique,point-blue,point-red,point-yellow,warm,cold, factory-punt-range-data=-1,-1,-1, factory-vib-range-data=-1,-1,-1,-1,-1,-1, picture-size=4608x2592, max-zoom=10, factory-gain-liveview-range=-1,-1, effect=none, blink=fail, whitebalance-values=auto,fluorescent-h,fluorescent-l,daylight,cloudy-daylight,custom,temperature,incandescent,prohibition,horizon,ledlight, picture-format=jpeg, focus-distances=0.15,1.20,Infinity, factory-flash-range=-1,-1, raw-save=0, auto-exposure-lock-supported=true, curr_zoom_level=0, hdr-mode=0, antibanding-values=60hz,off}

参考までに、その Build.PRODUCT を として報告しますmproject3gub

4

2 に答える 2

6

これをプログラムで検出する方法はありますか?

のようなパブリック API を介してではありませんCamera.Parameters

理論的には、そのようなすべてのメーカーが、文書化されていない API の標準化を行っている可能性がありますCamera.Parameters。また、抜け毛が自然に再生する可能性も理論的にはあります。私は、これらのいずれかが真実であるとは考えていません。

光学ズームを備えた、できれば Build.MANUFACTURER および Build.PRODUCT 文字列を備えたすべての Android デバイスのリストを知っている人はいますか?

私が知っている光学ズーム付きの 1 つのデバイス (Samsung Galaxy Camera) の報告Build.PRODUCT値 ( gd1wifiue) が、Google によって索引付けされたインターネット全体の合計 5 ページに表示されていることを考えると、1 つあるとは思えません。この書き込み、およびこのページを含みます。私はまだ Galaxy Camera を手に入れていないので、報告された値が間違っている可能性があることに注意してください。

于 2013-09-17T17:58:39.260 に答える