Fixes plugin for cordova 3.0 on Android

Please make these changes so that the plugin works with cordova 3.0 on Android.

Cheers,
Alex