Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
394 views
in Technique[技术] by (71.8m points)

android - Turn on the Blue light filter with Kotlin

I want to turn on/off the Android Blue Light Filter.

I already have tried to use an Action via Intent, the ACTION_NIGHT_DISPLAY_SETTINGS, but it returns me an error: No Activity found to handle Intent { act=android.settings.NIGHT_DISPLAY_SETTINGS }

I am very new to Kotlin and Native Android development (started studying 3 days ago).

I also saw that there's an feature called ContentResolver that can change values in another application, I'm guessing if there's a way to change it by ContentResolver.

Thank you for any information.

question from:https://stackoverflow.com/questions/65924649/turn-on-the-blue-light-filter-with-kotlin

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...