Hi there,
I am updating my application to Android 1.6 Donut. On Donut, I can't change the screen brightness from my application anymore. On Cupcake it works, and I do it this way:
Has this function been removed or replaced in Donut? Or do I need a permission to change it? Or does it still work for you?
Thank you very much,
Kaloer
I am updating my application to Android 1.6 Donut. On Donut, I can't change the screen brightness from my application anymore. On Cupcake it works, and I do it this way:
Code:
LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 0.2f;
getWindow().setAttributes(lp);
Has this function been removed or replaced in Donut? Or do I need a permission to change it? Or does it still work for you?
Thank you very much,
Kaloer