Device Tools, identify version of android and return an action, results in error

I need help with my application.

Set in code for when the application starts to identify the version of android with Device Tools, and if the version of android is equal to or greater than 6.0 the method “Status bar Light Icons” is activated, if not, just the color of the bar status changes to gray, here the blocks:
image
(“Button1” because I’m in the companion, so I did not have to restart every time I change the code.)

unfortunately, the way I set it is resulting in an error and nothing is done.

Error:
image

I need a little help in that part.

bild

/Boban

1 Like

Solved, thank you! :slight_smile:

/Boban

3 Likes

Thanks again, I will use this method.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.