You might check this:
Great extension. Man, kodular is on fire this year. Each day a new amazing improvement.
@WatermelonIce , the toogle button to enable de permision is not enabled. i cant turn it on. please help me
Did you try this?
Yes, i tried with that block my friend.
What android version are you using?
Because version under Android 6.0 doesnât need a individual permission.
I want when I press the A button on the screen the light will be raised as high as possible
How I can do it
in the button click event try
set Brightness to 100
Taifun
as alternative I can offer the settings extension, which also offers a property to set the brightnessâŚ
Taifun
Can you clarify what doesnât work? Like did the brightness change? Or the brightness isnât the maximum?
Thanks! I believe yours is much more stable and better than mine
As you can see in my blocks, I tried to set different values.
The brightness doesnât change at all.
Did you grant the write settings permission?
I tested it with Companion and this permission is already granted (in Companion):
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
What will happen if you set the Brightness to 0?
As I said:
And you should grant it with call Screen.Open System Write Settings
Just tested it in my Virtual Pixel Phone and on my personal phone, it worked when the permission is granted. The get brightness will always work no matter the Write Settings are granted.
Here is a test aia: TestBrightnessTools.aia (25.2 KB)
Ah, you should grant it after opening System Write Settings â call Screen.Open System Write Settings
.
I tried it on another device beforehand and it worked without opening the System Write Settings (obviously it was already granted there).
Thanks.
You should add these blocks to the extension description: