gcphone
gcphone copied to clipboard
Battery and switch off (help with programming)
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!
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}.