Has anybody ever written any code which taps into the sleep/wake switch on either an Android or iOS phone? I'd like to know if that's possible.