This worked for the first time logging sensor data from Android.