NullPointerException fixed! Sensors keep activated when exit and come back to the app.