Do you know a code to open the phone by double tap on the screen? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Do you know a code to open the phone by double tap on the screen?

confused

5th Jun 2017, 1:28 AM
Abdel-hady Shalsh
Abdel-hady Shalsh - avatar
3 Answers
+ 2
function yourFunction(){ if (tapVeryHard == 2){ openPhone = true; } return brokenPhone; } sorry just joking. There are some phone features where knuckle tapping on the screen a certain pattern opens a certain app (configurable). But they are model specific at the moment because you need a pressure sensitive screen. Honestly I have the feature on my phone but i'm afraid to use it other than for test. I'd rather sacrifice the added functionality than my screen. if yo happen to have a model that supports it, you can create your app normally and configure the phone settings in a way that when you knuckle the screen drawing a pattern, your app launches. E. G. On the Honor8 if you knuckle and draw a W the phone opens whatsapp and the feature is fully customizable but I don't really use it.
5th Jun 2017, 5:47 AM
seamiki
seamiki - avatar
+ 1
Open the phone? 🤔
5th Jun 2017, 3:27 AM
Calviղ
Calviղ - avatar
0
@Calvin yes
5th Jun 2017, 10:53 AM
Abdel-hady Shalsh
Abdel-hady Shalsh - avatar