D Deleted member 103 Guest Jan 1, 2015 #1 Hi, what is the equivalente of SetScreenBrightness in B4i? B4X: Sub setBrightness(value As Float) Dim p As Phone p.SetScreenBrightness(value) End Sub
Hi, what is the equivalente of SetScreenBrightness in B4i? B4X: Sub setBrightness(value As Float) Dim p As Phone p.SetScreenBrightness(value) End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 1, 2015 #2 B4X: 'value between 0 to 1 Sub SetScreenBrightness (value As Float) Dim no As NativeObject no.Initialize("UIScreen").RunMethod("mainScreen", Null).SetField("brightness", value) End Sub Upvote 0
B4X: 'value between 0 to 1 Sub SetScreenBrightness (value As Float) Dim no As NativeObject no.Initialize("UIScreen").RunMethod("mainScreen", Null).SetField("brightness", value) End Sub
A Anthony Williams New Member Licensed User Longtime User Jul 23, 2015 #4 Can you tell us how to turn of the Auto-Brightness? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2015 #5 You cannot turn on or off the auto brightness. Upvote 0