Indeed, as Greg has said in his answer, findViewById returns null. This might have happend because the XML you posted here is not the one you're referring to in your code:
setContentView(R.layout.activity_acceleration);
You should probably replace activity_acceleration
with activity_velocity
.