Add some parameters in Camera app

来源:互联网 发布:硅藻泥装修 知乎 编辑:程序博客网 时间:2024/05/22 06:55

Android4.0.3, Camera, need add some parameters(brightness/saturation/contrast) on camera app


[UI flow]

Camera::onCreate
Camera::initializeIndicatorControl
(Camera_control.xml)
IndicatorControlContainer::initialize
IndicatorControlWheelContainer::initialize
IndicatorControlWheel::initialize
IndicatorControl::addControls
IndicatorControl::addIndicator
IndicatorButton::IndicatorButton
IndicatorButton::reloadPreference

[work flow]
interface OnPreferenceChangedListener
onSharedPreferenceChanged
setCameraParametersWhenIdle
setCameraParameters
updateCameraParametersPreference

[get/set mechanism]
com.android.camera.camera_preference_00.xml

[reference]
http://blog.sina.com.cn/s/blog_4d661a8c010138v8.html