Blinking Flash according to Morse Code- Android. How to avoid ANRs due to sleeping ? (Torch App)
问题 So, I made a torch app... The normal Torch function is fully working, no problems. The following explains the below function that can cause possible ANRs Say, I want to send out an SOS message (morse code) through the blinking flash. (its 111-000-111) So it's On-On-On-Off-Off-Off- and repeat. (Read Slowly) I "On" it for a little while, then a little flash, "On" again - This is to distinguish two consecutive "On"s ... That's how I get three distinct flashes. Trouble is, for Time delay, I put