JRC
JRC

Reputation: 808

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 internal 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.

Upvotes: 0

Views: 1472

Answers (2)

pyler
pyler

Reputation: 21

am start -a android.intent.action.SHOW_BRIGHTNESS_DIALOG

Upvotes: 0

hackbod
hackbod

Reputation: 91331

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

Upvotes: 1

Related Questions