Barcode scanner stops working after some time of inactivity

Hello, I noticed that if i dont use scanner for a while (until Android goes to sleep and locks it's screen) the scanner stops working. After i wake up the device my application cannot scan any more. I use Android EMDK. How can i restart the scanner after app returns from sleeping?