title: PhoneGap (2.4) plugin error: 'class not found'
body: <p>I tried to convert a simple Java class to a PhoneGap plugin, but I can't load it, I have out of ideas now.</p>
  
  <p>Here is the class:
  <a href="https://gist.github.com/kowdermeister/5013353" rel="nofollow">https://gist.github.com/kowdermeister/5013353</a></p>
  
  <p>I have added the following to /res/xml/config/xml/config.xml</p>
  
  <pre><code>&lt;plugin name="MediaPlayerStateWrapper" value="org.apache.cordova.plugins.MediaPlayerStateWrapper"/&gt;
  </code></pre>
  
  <p>and here is the JS that tries to load an MP3</p>
  
  <pre><code>cordova.exec( function () {
      // Success
      cordova.exec(function(){ alert('playing') }, function () {
          // Failed to start
      },'MediaPlayerStateWrapper', 'play');
  }, function (e) {
      alert(e)
  }, 'MediaPlayerStateWrapper','setDataSource', ['http://...']);
  </code></pre>
  
  <p>My environment is:</p>
  
  <p>Eclipse (ADT)</p>
  
  <p>Target: Android 4.2</p>
  
  <p>PhoneGap SDK: cordova-2.4.0rc1.js</p>