Null pointer exception when trying to play game background music with MediaPlayer

view story

http://stackoverflow.com – I have tried to copy: [http://stackoverflow.com/questions/11490236/android-comprehensive-failproof-music-service-across-multiple-activites][1] However, I am getting a null pointer exception on: StartupActivity.getService().musicStart(); Any ideas why this might be null? Here is my version of the (abridged) main java: public class homescreenfruit extends Activity { // bounded service private static MusicService mBoundService; // whetere service is bounded or not private boolean mIsBound; SharedPreferences myPrefs; SharedPreferences.Editor prefsEditor; boolean snd1 = true; boolean snd2 = tr (HowTos)