Get Screen Brightness Library

vb1992

Well-Known Member
Licensed User
Longtime User
Library: Get Screen Brightness Value

Value returned is an int from: 0 to 255

Small library to get the screen brightness level.

I only tested this with one device and it works.

Please test, thanks.

Attached library contains the library files, a sample app.

VBBright
Version: 1.0
 
Last edited:

corwin42

Expert
Licensed User
Longtime User
You don't need an extra library for this:

B4X:
Dim p as Phone
brightness = p.GetSettings("screen_brightness")

This does exactly the same as your library.
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
@corwin42

Thanks for that...while I didn't know about that capability, I can also use the app vb1992 wrote displaying the current brightness. Both will come in handy so thanks again!!
 
Upvote 0
Top