Using the phone's built in sensors in Android
<p>I am creating an app where I will send the data I receive from the Android phones sensors, to another Android phone using Wifi-Direct.</p>

<p>I am able to get the values of the sensors by writing the code in a class that extends Activity. I have used the Sensor Manager Class.</p>

<p>But now I want to get the sensor values in a Background thread. Is there any way to do that?</p>
