at present the following code is setting the screen brightness level to 0 but it is not dimming the screen.can somebody help me out.the android version is 4.0.
thanks in advance.

```
android.provider.Settings.System.putInt(
 context.getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS, 0);

```