Fixed indexOutOfBounds in Calculations

Speed and time array should be the same size; also added console
statements for connection errors.
Fixed database upload size error
Fixed issues

1) createProfile error in onActivityResult; it doesn’t rely on Intent
data
2) UI consistency on Drive onPause and onResume
Fixed database upload when app is running
Small fixes

Green clouds in gridview; double formatting in Calculations.
Fixed invalid int error
Resolve merge conflicts