Creating Local Android Service
<p>I created a local android service.
When user selects the start button then a service is started and an inner class which extends from Activity and implements the runnable and SensorEventListener is created.</p>

<p>I would like to get the x,y,z coordinates of the mobile device before and after the device is locked (screen monitor becomes off and black and the device is locked). How do I do this task?</p>

<p>Thanks,
Eyall</p>
