gcphone icon indicating copy to clipboard operation
gcphone copied to clipboard

Battery and switch off (help with programming)

Open BuddiesTV opened this issue 4 years ago • 1 comments

I have the idea that you have a Battery and can turn off yout phone, but i dont know how i can do this :/ Can you help me? Please!

BuddiesTV avatar Oct 23 '20 23:10 BuddiesTV

You can do it with a simple counter that validates you every time you open the phone. Logically that counter must be as var counter = 100 and go down one at a time every X time. when you get it to decrease you do an if that is checked when opening the gcphone such as if (counter == 0) {black screen for example}.

manueljlz avatar Jan 18 '21 10:01 manueljlz