Is there a function that i can use to lock the scree , i mean like "when back pressed don't do anything????" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is there a function that i can use to lock the scree , i mean like "when back pressed don't do anything????"

I know that's a stupid question right???😅

26th Feb 2019, 8:13 PM
( ͠° ͟ʖ °͠ )
2 Answers
+ 5
It's not really a stupid question, but it does lack a bit of context. Are you trying to program for Android apps or mobile phones in general, or is this about web development? This "back button" can refer to the back key on your phone, or the back key on a web browser. There are several ways to achieve this, but each differ depending on which platform you are trying to achieve this on.
27th Feb 2019, 12:22 AM
Fermi
Fermi - avatar
+ 2
Thank you Fermi , for your answer , I know it wasn't too clear but I mean the back of the phone in an app
27th Feb 2019, 5:30 PM
( ͠° ͟ʖ °͠ )