How do you make a on and off switch for android?


#1

I need ideas so anything would be helpful.


#2

I also want to know pls anyone help.