Receiving Screen on/off event for Service app

Receiving Screen on/off event for Service app

BY 09 Jan 2015 Native Application Development

Hi,

I am trying to develop a native service app. I need to handle screen on and off events, but i am not able to find any such example or options being provided. I want to receive event of screen turn on/off incase screen turns off/on by user or screen timeout. Please guide.

Written by