Service Causing Unexpected Close
<p>I am creating a game app and I have a few activities for the different screens. I have a service I am using to play music through out the activities. A really simple service, I have the title screen with image buttons to turn it on and off. Now I am getting a unexpected close and this error message from eclipse: </p>

<pre><code>[2011-05-19 19:50:04 - ddms]null
java.lang.NullPointerException
    at com.android.ddmlib.Client.sendAndConsume(Client.java:571)
    at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
    at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
    at com.android.ddmlib.Client.getJdwpPacket(Client.java:670)
    at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
    at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
</code></pre>

<p>EDIT: Code For Service</p>

<p>public class BGMusic extends Service {<br>
    MediaPlayer player;</p>

<pre><code>@Override
public IBinder onBind(Intent arg0) {
    // TODO Auto-generated method stub
    return null;
}

@Override
public void onCreate() {
    super.onCreate();
    player = MediaPlayer.create(this, R.raw.still_wana);
}

public void onStart(Intent intent, int startId) {
    super.onCreate();
    player.start();
}

@Override
public void onDestroy() {
    super.onDestroy();
    player.stop();
}
</code></pre>

<p>}</p>

<p>EDIT: Console Android Msg</p>

<p>Starting activity com.android.hitmanassault.HitmanTitle on device emulator-5554
ActivityManager: DDM dispatch reg wait timeout
ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined
ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android.hitmanassault/.HitmanTitle }</p>
