Configure onResume and onPause to activate/deactivate the accelerometer Add/register the sensor manager and listener in the onCreate() method in your activity Define variables for sensor manager, shake detector and accelerometer Thats the program were going to be using to edit our games metadata.