开发者

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

开发者 https://www.devze.com 2023-02-16 02:28 出处:网络
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 an

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

精彩评论

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