Patch due to Cordova 2.0 API change

Hi dmedvinsky,

I haven't checked the iOS folder yet but I believe it should have similar changes on API.   But this patch works for Cordova / Phonegap 2.0 + on Android now.

Can you please accept this pull request, or I shall also work out the iOS patch to make the JS call consistent and make a new request?

Best,
yyang