开发者

android :: using Android's Brightness control interface from activity

In my application i need to change the screen brightness. I want to display Android's in开发者_开发百科ternal brightness control dialog box (which is being displayed when we select Settings->Sound and display -> brightness) to be displayed when user clicks brightness button in my activity.


You can't do this. The best you can do is launch the Sound and display panel with the intent action defined in android.provider.Settings


am start -a android.intent.action.SHOW_BRIGHTNESS_DIALOG

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜