Guest Posted April 4, 2011 Share Posted April 4, 2011 Bonjour à tous, Je développe un widget pour changer la luminosité de l'écran, afin d'apprendre a faire des widgets. Mon widget s'affiche bien, je peux gérer le clic, mais je ne sais pas comment changer la luminosité de l'écran du terminal depuis sa classe "AppWidgetProvider". -> Je ne sais pas comment avoir accès au paramètre système : android.provider.Settings.System.SCREEN_BRIGHTNESS -> y a-t-il une autre solution ? via un service ou autre ? je ne trouve pas dans la doc. Merci d'avance :) Goten Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2011 Share Posted April 5, 2011 RÉSOLU ! :lol: Link to comment Share on other sites More sharing options...
chpil Posted April 5, 2011 Share Posted April 5, 2011 Tu peux nous donner la solution que tu as trouvé ? Cela pourrait servir à d'autres... Link to comment Share on other sites More sharing options...
Guest Posted April 9, 2011 Share Posted April 9, 2011 Au clic sur le widget, je lance une Activity (invisible) qui s'occupe de changer la luminosité. Mais chose étrange quand je tourne le terminal (portrait/paysage) le clic sur le widget ne fonctionne plus ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.