A method and apparatus for allowing a user device to avoid undesired state transitions
when the user is present but not performing activities is provided. The method
provides for detection of activity in the proximity of the user device by monitoring
for sounds via an audio input device connected to the user device. The method further
provides for analysis of the detected audio signals on the audio input to determine
if the sound detected matches a voice reference sample of the user of the user
device. If the detected sound matches the existing voice reference sample of the
user, the method provides for simulation of activities on the user device, thereby
preventing the user device from performing an undesired state transition, and in
turn preempting resource saving operations.