我自己开发了一个拍照程序,程序里面我用的是camera.setOneShotPreviewCallback()这个方法。这样我得到的图片大小大概是400多KB。而我手机里预装的相机,拍照后得到的图片大小是1.4MB左右!
    请有经验的同仁,帮忙解决下,给点相应的提示页可以!
    我先在这里多谢了,多谢!

解决方案 »

  1.   

    你学要设置camera的一下参数, 比如照片的宽和高。public void setPictureSize (int width, int height)Added in API level 1
    Sets the dimensions for pictures.Applications need to consider the display orientation. See setPreviewSize(int, int) for reference.Parameters
    width the width for pictures, in pixels
    height the height for pictures, in pixels
    See Also
    setPreviewSize(int, int)
      

  2.   

    parameters.getsupportpicturesize()里面有支持的最大的照片 宽高值 setPicturesize 设置一下 然后拍照 .takepicture 接收那个 jepg 数据 存储 就差不多了