Unable to start activity, virtual method?

<>

This question already has an answer here:

Answers


mpAudio =   MediaPlayer.create(this, R.raw.youngagain)

MediaPlayer.create() return a MediaPlayer object, or null if creation failed.

MediaPlayer.create() failed and mpAudio = null .

So when you mpAudio.setLoop, you get nullpointer error.


Need Your Help

Silverlight 5 Get Usercontrol's handle

c# .net silverlight user-controls pinvoke

I'm trying to make a PInvoke call to register any USB device connection notification.