Accelerometer working on tablet