【问题标题】:Android Camera Preview is incorrect on Samsung Galaxy S3三星 Galaxy S3 上的 Android 相机预览不正确
【发布时间】:2012-11-12 19:48:58
【问题描述】:

当我使用 Android 4.0.4 上的三星 Galaxy S3 将相机加载到我的应用程序中时,预览图像只是绿色且模糊,带有水平噪点。相机按钮看起来不错。当我拍照时,保存的文件看起来不错。我测试了内置相机应用程序,它工作得很好。

运行 Android 2.3 的三星 Galaxy S 和摩托罗拉 Electrify 不会出现此问题。

我使用 Rhomobile 进行开发。这里是安卓相机源码的链接:https://github.com/rhomobile/rhodes/tree/master/platform/android/Rhodes/src/com/rhomobile/rhodes/camera

这是我打开相机时得到的:

我的设置: - Android 4.0.4 上的三星 Galaxy S3 - 罗德 3.4.2 - 最小SDK:8 - Android SDK:4.1

【问题讨论】:

    标签: android android-camera rhomobile


    【解决方案1】:

    我通过更改相机设置解决了这个问题:

    设置 = {:desired_width => 800, :desired_height => 800, :flash_mode => 'auto'} 相机::take_picture(url_for(:action => :camera_callback_new), 设置)

    设置 = {:desired_width => 1024, :desired_height => 1024, :flash_mode => 'auto'} 相机::take_picture(url_for(:action => :camera_callback_new), 设置)

    【讨论】:

    • 这是因为不支持 800x800 吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-22
    • 1970-01-01
    • 2013-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多