Creating a class for Accelerometer and movement utilities

view story

http://stackoverflow.com – I'm working on a game that uses accelerometer data to change a character's X position. So far, I have the right idea (I think), but I am bogged down with an error that I don't know how to work with. My framework goes like this: Mainactivity.java is used to initialize and register the accelerometer sensor to AccelerometerUtil.java AccelerometerUtil.java is used to record accelerometer data and transfer it to MovementUtils.java MovementUtils is used to take a bitmaps X coordinate, and add the accelerometer value to it, then pass it to GameView, which eventually uses the data to draw the bitmap. (HowTos)