Dans un exemple simple lorsque je fais :
<code
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = lum; // 0.0 - 1.0
getWindow().setAttributes(lp);
/>
en attribuant différentes valeurs à lum : tout marche nickel, la luminosité change bien.
Le même code dans mon appli qui comporte 3 onglets, cela n'a jamais aucun effet.
Merci pour tout aide.
Partager