2

In my android application I am using custom camera with effects. While i am calling

parameters.setColorEffect(Camera.Parameters.EFFECT_NEGATIVE);
camera.setParameters(parameters);

the application is working well but while I am calling

parameters.setColorEffect(Camera.Parameters.EFFECT_BLACKBOARD);
camera.setParameters(parameters);

the application leads to the following exception

01-21 17:32:13.656: E/AndroidRuntime(5932): java.lang.RuntimeException: setParameters failed
01-21 17:32:13.656: E/AndroidRuntime(5932):     at android.hardware.Camera.native_setParameters(Native Method)
01-21 17:32:13.656: E/AndroidRuntime(5932):     at android.hardware.Camera.setParameters(Camera.java:1494)

Can anyone help me.

Thanks.

1
  • did you manage to solve that thread? Commented Aug 28, 2014 at 10:44

1 Answer 1

1

It means the EFFECT_BLACKBOARD is not supported by your device. You must check whether the ColorEffect is supported by your Device.

CameraParameters.getSupportedColorEffects();

And check if it contains your effect then apply it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.